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

handlebars_assets with backbone AND ember... #58

Closed
dgdosen opened this issue Apr 1, 2013 · 3 comments
Closed

handlebars_assets with backbone AND ember... #58

dgdosen opened this issue Apr 1, 2013 · 3 comments

Comments

@dgdosen
Copy link

dgdosen commented Apr 1, 2013

We have a web site that has several "mini apps" that currently use backbone over rails, leveraging handlebars_assets.

We're wanting to add to this app (might not be an ideal solution) so that our new "mini apps" work with ember instead of backbone.

I'm having problems getting handlebars_assets to play nice in that environment. On one hand, I can get the backbone app to work as it has in the past.

To get ember to work properly, I need an initializer for Handlebars that's configured to help ember, but that changes how the backbone templates are loaded, thereby breaking them.

Is there a way to set how handlebars_assets compiles templates so that both client front ends are happy?

Thanks for any ideas...

@leshill
Copy link
Owner

leshill commented Apr 2, 2013

Hi @dgdosen,

The config switch is global, so supporting both is not possible without a patch. A quick look shows that having something like recognized a file extension of .ember seems like a reasonable patch to make. Do you want to try it?

@dgdosen
Copy link
Author

dgdosen commented Apr 19, 2013

haven't forgot about this... I should have some time between now and Monday (4/22)

@AlexRiedler
Copy link
Collaborator

Fixed by #74 , closing.

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

Successfully merging a pull request may close this issue.

3 participants