Closed tfarnsworth closed 10 years ago
Thanks for the PR. At a glance, it looks good. I'll review more carefully and it will probably make the next release.
I had to make some changes so I made a new PR on my end -
https://github.com/mattacular/grunt-handlebars-compiler/pull/5
Thanks!
Awesome, looks great. Thanks!
Hi! I'm using this plugin with the exportAMD option. It worked great for a single template, but when compiling multiple templates into a single file, I ran into issues. The compiled file was wrapping each template in it's own require statement. So it looked something like:
I believe the issue is caused by the modules not having names but being in the same file, which doesn't play nicely in require. Since all the templates just need to require Handlebars, I rearranged the code a bit so that it generates something more like:
This works perfectly in my app, and I've updated the AMD tests to use multiple files. I would love to hear your thoughts, though!