Render Handlebar templates server side in .NET/C#

Paul Grimshaw picture Paul Grimshaw · Apr 4, 2013 · Viewed 24.5k times · Source

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?

Answer

Rex M picture Rex M · Jan 10, 2015

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.