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:
empz
  • 11,509
  • 16
  • 65
  • 106
3
votes
1 answer

Precompiled Handlebars template with RequireJS

I have a handlebars template which I have manually precompiled and saved as - testTemplate.handlebars. Now, in my requireJS + Backbone code I have the below function - define(['text!../templates/testTemplate.handlebars' …
3
votes
1 answer

Using the Cassette V2 to compile templates jsRender and KnockoutJS templates

I am moving to version 2 of the Cassette. But I found nothing on the web to help me configure my Cassette to compile HTML templates. Templates Some templates jQuery Templates as:
2
votes
1 answer

Are pre-compiled templates useful for non-node sites?

I have been researching methods for pre-compiling my _underscore templates and am beginning to think that 99% of people who are pre-compiling their templates seem to be running node. This makes me think that maybe pre-compiling is intended to only…
Nippysaurus
  • 20,110
  • 21
  • 77
  • 129
1
vote
1 answer

Handlebars: TypeError: Cannot read property 'helperMissing' of undefined

I am having a problem with Handlebars compiled templates. I feel like I am completely missing something important, but try as I might, I can't seem to work it out, or find any information online as to why this particular situation is presenting…
1
vote
1 answer

Dust.js - Render precompiled anonymous template on client side

Is there a way to render a precompiled template that has no name on the client side in DustJs? Because documentation only shows with a name:
Cinn
  • 4,281
  • 2
  • 20
  • 32
1
vote
1 answer

Ember is undefined in precompiled hbs templates

I'm using grunt-ember-templates for precompilation of Handlebars templates. The scripts are in following sequence:
Hasib Mahmud
  • 806
  • 1
  • 10
  • 29
0
votes
0 answers

How to precompile every header file?

I was reading clang modules documentation. I understood a few things, I don't know if i'm true or wrong. If I just pass -fmodules and -fbuiltin-module-map to every compiled source file as clang arguments, I will get every benefit of modules such as…
Inline
  • 2,566
  • 1
  • 16
  • 32
0
votes
1 answer

Render an embedded partial template from a pre-compiled template using handlebars?

I have a pre-compiled handlebars template that is rendering as expected. I've decided to add an embedded (not pre-compiled) partial reference to the template that I'm pre-compiling but the content of the partial is not rendering properly. The…
0
votes
3 answers

Handlebars JS Precompiled Faster Than Just Rendering On The Server?

I apologize in advance for the total noob question about Handlebars. I'm coming from a Rails background and while Handlebars looks cool I'm having trouble seeing it's advantage over compiling views on the server. So here are the…
0
votes
2 answers

Can't select all .hbs files in subfolders on windows

I want to precompile my ember templates. I installed an application for that, but I can only precompile one file. I need like to select all files with .hbs extension including subfolders I tried ember-precompile "components/**/*.hbs" -f…
Tomas
  • 1,377
  • 3
  • 17
  • 32