cultofmetatron / jquery-autobars

A convenient library for loading handlebars templates
47 stars 13 forks source link

Cleaner support for Ember would be nice #7

Open go1dfish opened 10 years ago

go1dfish commented 10 years ago

It's possible to get autobars working with ember currently with a few modifications.

My hacked together version is here: https://github.com/go1dfish/dig.ccMixter/blob/master/lib/js/jquery-autobars.js

I have to manually rename component templates as well: https://github.com/go1dfish/dig.ccMixter/blob/master/js/app.js

Using autobars allows me to keep the project entirely static; and hostable on github directly from the repo: http://go1dfish.github.com/dig.ccMixter and still maintain a sane file structure with separate template files.

But it seems like it would be possible to add a couple of options to autobars that would allow it to more easily work for ember. The main things that need to be settable are the path to Handlebars (Ember.Handlebars in the case of an Ember environment) for compiling; as well as setting the templates at Ember.TEMPLATES. Component path detection would be cool; but the workaround I use already isn't too bad.

ryancole commented 10 years ago

+1