Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile handlebars to single file #4

Open
Darcbar opened this issue Nov 18, 2012 · 2 comments
Open

Compile handlebars to single file #4

Darcbar opened this issue Nov 18, 2012 · 2 comments

Comments

@Darcbar
Copy link

Darcbar commented Nov 18, 2012

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

@daaain
Copy link

daaain commented Nov 18, 2012

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants