Questions tagged [precompiled-templates]
14 questions
5
votes
1 answer
Load translations (i18next) with requireJS and precompiled Handlebars templates
I have a requireJS setup with precompiled Handlebars templates and my translations i18next in a database. I need to do a few things in the following order:
Load my translations from a database
Register a helper in Handlebars so my values in my…

Daan
- 7,685
- 5
- 43
- 52
3
votes
0 answers
How to Precompile Handlebars templates and convert to html using gulp-compile-handlebars in batch
I am using express and node in server side and handlebars as templating engine.
Now from the official documentation of gulp-compile-handlebars I came to know about pre-compiling technique of handlebars templates, which I am doing as below -
const…

Partha Roy
- 1,575
- 15
- 16
3
votes
2 answers
Using Jurassic to precompile a JsRender template server-side
I'm attempting to precompile JsRender templates from a class library written in C#, using the Jurassic script engine to execute JsRender.
Here is my code:
var engine = new Jurassic.ScriptEngine();
engine.Execute(JsRenderContents);
var…

awj
- 7,482
- 10
- 66
- 120
3
votes
1 answer
Precompiling handlebars template with custom helpers
I have a message.handlebars template which works perfect when compiling it in the browser.
I precompiled it with handlebars -message.handlebars -f -message.js successfuly.
Then in my ASP.NET MVC site I'm adding the references as: