html_import_tag
Adds an html_import_tag helper to the Rails Asset Pipeline. Useful when importing web components.
Import an html file like so:
<%= html_import_tag "filename" %>
The html file will be fingerprinted and imported via link tag.
TODO:
- Add support for an html manifest with directive comments.
- Add processors to concatenate multiple files into a single compressed import.
- Add support for nested imports.
Contributing
- Fork it ( https://github.com/[my-github-username]/html_import_tag/fork )
- 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 a new Pull Request