Ember Pre-Compile
Compiling handlebars for Ember JS library. Supported versions of libraries are Handlbars JS RC 4 and Ember JS RC 5.
Installation
Add this line to your application's Gemfile:
gem 'emberprecompile'
And then execute:
$ bundle
Or install it yourself as:
$ gem install emberprecompile
Usage
After installing gem, to compile handlebars say:
$ emberprecompile
Or
$ emberprecompile compile
To keep monitoring changes in handlebar files say:
$ emberprecompile watch
Note
It expects "views" and "compiled" folders are existing in current location. Currently all handlebars are placed under "views" folder with ".handlebars" extension. Compiled handlebars are placed under "compiled" folder in "views.handlebars.js" file.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request