gruntjs / grunt-contrib-handlebars

Precompile Handlebars templates to JST file.
http://gruntjs.com/
MIT License
282 stars 126 forks source link

Using multiple pre compiled templates #113

Open fmachi opened 10 years ago

fmachi commented 10 years ago

Ciao! We're using grunt-contrib-handlebars in a single page application framework with some different applications. They share some templates, for example a layout.m and for each of this application we create a different pre compiled file, something like:

Handlebars.registerPartial('layout',......)

so, the last processed overwrites the previous one. Is there any way to load different pre-compiled templates into the same Handlebars object (inside a node.js App) avoiding this issue? Thanks