pixeltrix/steering

Compile handlebars to single file

Darcbar opened this issue · 2 comments

Is there any way to compile multiple handlbars templates to a single file templates.js?

I think if you give compile_to_file the same filename it'll just append, there is no destructive file operation in the method.

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.