yaymukund / grunt-ember-handlebars

Precompile ember templates in grunt using only headless-ember.js and ember.js
MIT License
34 stars 26 forks source link

support for compiling ember components #19

Closed dlai0001 closed 11 years ago

dlai0001 commented 11 years ago

I added a 'componentsRegEx' which checks the filepath for example for '/components/[^/]+$' to detect which templates are in the components directory.

Then it'll prefix the template names of the components with 'components/' so Ember can recognize them as stand alone components.

dlai0001 commented 11 years ago

I couldn't figure out how that unit test works, so I didn't put any unit tests in there.

dlai0001 commented 11 years ago

sorry wrong commit, I'll resubmit