# Jekyll::AssetsPlugin [![Build Status](https://secure.travis-ci.org/ixti/jekyll-assets.png)](http://travis-ci.org/ixti/jekyll-assets) [![Dependency Status](https://gemnasium.com/ixti/jekyll-assets.png)](https://gemnasium.com/ixti/jekyll-assets) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/ixti/jekyll-assets) Jekyll plugin, that adds Rails-alike assets pipeline, that means that: - It allows you to write these assets in other languages such as CoffeeScript, Sass, Less and ERB. - It allows you to specify dependencies between your assets and automatically concatenates them. - It allows you to minify/compress your JavaScript and CSS assets using compressor you like: YUI, SASS, Uglifier or no compression at all. - It supports JavaScript templates for client-side rendering of strings or markup. JavaScript templates have the special format extension `.jst` and are compiled to JavaScript functions. - Automaticaly adds MD5 fingerprint suffix for _cache busting_. That means that your `app.css` will become `app-908e25f4bf641868d8683022a5b62f54.css`. Jekyll-Assets uses fabulous [Sprockets][sprockets] under the hood, so you may refer to Rails guide about [Asset Pipeline][rails-guide] for detailed information about amazing features it gives you. *Notice:* You must have an [ExecJS][extjs] supported runtime in order to use CoffeeScript. [rails-guide]: http://guides.rubyonrails.org/asset_pipeline.html [sprockets]: https://github.com/sstephenson/sprockets#readme [extjs]: https://github.com/sstephenson/execjs#readme ## Installation Add this line to your application's Gemfile: gem 'jekyll-assets' And then execute: $ bundle Or install it yourself as: $ gem install jekyll-assets ## How to Use Jekyll-Assets First of all make sure to require it. Common practice is to add following line into `_plugins/ext.rb` file: ``` ruby require "jekyll-assets" ``` Once plugin installed, you'll have following liquid tags available: - `javascript app`: Generates `