Precompile Handlebars Template in .NET using Jurassic
The awesome Handlebars.js templating library, a superset of Mustache, has functions built-in for precompiling a template to a javascript function. Unfortunately, the instructions are only for Node.js. Using the Jurassic javascript compiler for .NET, it is simple to precompile your Handlebars template in C# and serve up the template functions in your javascript:
Unless otherwise noted, source code on this blog is Licensed under the MIT License.