EcoCompress
The content of JST template is out of JS compressor's work. EcoCompress overrides Eco.compile method to minify the Eco's template source itself.
To see more detail, see spec dir and compare minified files (e.g. *.min.out, *.min.js) to the original files (e.g. *.orig.out, *.orig.js).
Installation
Add this line to your application's Gemfile:
gem 'eco_compress'
And then execute:
$ bundle
Or install it yourself as:
$ gem install eco_compress
Usage
Add to Gemfile:
gem 'eco_compress'
Or require it
require 'eco_compress'
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