Load html_assets
in your Gemfile
as part of the assets
group
group :assets do
gem 'html_assets'
end
html_assets
also works when you are precompiling your assets.
You should locate your templates with your other assets, for example app/assets/javascripts/templates
. In your JavaScript manifest file, use require_tree
to pull in the templates
//= require_tree ./templates
Thank you Les Hill for handlebars_assets which this gem is heavily influenced by.
Pull requests are welcome! Please do not update the version number.
In a nutshell:
- Fork
- Create a topic branch - git checkout -b my_branch
- Push to your branch - git push origin my_branch
- Create a Pull Request from your branch
- That's it!