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

Add an option to print the output in AMD style #34

Closed
kadishmal opened this issue Jul 8, 2013 · 1 comment
Closed

Add an option to print the output in AMD style #34

kadishmal opened this issue Jul 8, 2013 · 1 comment

Comments

@kadishmal
Copy link
Contributor

Original Handlebars supports AMD style output using --amd or -a options used like:

handlebars -a -m -e hb ./js/photos > ./js/photos/templates.js

Since my entire application is based on Require.js, I need AMD compliant compiled templates.

All that is required is to wrap the current output with:

define(["Ember"],function(Ember){
    // Current output goes here.
});

I think it should be fairly simple to add this feature. Please let me know if it has already been added.

@dgeb
Copy link
Owner

dgeb commented Aug 13, 2013

This is now supported because of PR #35 - thanks @kadishmal!

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

2 participants