Is there an existing library to render handlebar templates in .NET?
I would like to use this as a templating engine for users to create HTML email templates
I've spent a few hours looking, but can't seem to find anything. A wrapped up javascript rendering model would be ok, but a native library better.
Otherwise, is there a similar templating engine more suited to the .NET environment?
Pro Handlebars Handlebars is good for rendering in CLI-apps, non-HTML text content, server-side rendering of pure contents. Handlebars has been ported to many programming languages (Java, Rust etc).
Handlebars is popular for both back-end and front-end templating. For example, the popular front-end framework Ember uses Handlebars as the templating engine. Handlebars is an extension of the Mustache template language, which is mostly focused on simplicity and minimal templating.
Handlebars is a simple templating language. It uses a template and an input object to generate HTML or other text formats.
Since this question was answered, a full-blown, native .NET library for Handlebars became available (disclosure: I am the primary author).
Handlebars.Net on GitHub and on NuGet
It compiles Handlebars templates to IL, and has excellent feature coverage.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With