Compile handlebars to single file
Darcbar opened this issue · 2 comments
Darcbar commented
Is there any way to compile multiple handlbars templates to a single file templates.js?
daaain commented
I think if you give compile_to_file
the same filename it'll just append, there is no destructive file operation in the method.
pixeltrix commented
My initial motivation for writing this was to integrate Handlebars templates into the Rails asset pipeline so concatenation of multiple files is left to an external library like Sprockets. I'd suggest using that or Jammit to concatenation your JS files. If it can't be used with Jammit then let me know and I'll look at fixing it.