Sha256: 1e9319579468c0266abd915d5d7d71699e781fcf46edf0b19d46c8e0ce07ed76
Contents?: true
Size: 1006 Bytes
Versions: 1
Compression:
Stored size: 1006 Bytes
Contents
# Middleman::Automatic::Clowncar Automatically generated responsive images for Middleman. ## Installation Add this line to your application's Gemfile: gem 'middleman-automatic-clowncar' And then execute: $ bundle Or install it yourself as: $ gem install middleman-automatic-clowncar ## Usage Activate the module in `config.rb` and pass in config options. ```ruby activate :automatic_clowncar, :sizes => { :small => 200, :medium => 400, :large => 600 }, :namespace_directory => %w(photos) ``` Then in a template you can use the `automatic_clowncar_tag` to display a responsive image. ```erb <%= automatic_clowncar_tag 'photos/my-photo.jpg' %> ``` ## Contributing 1. Fork it ( http://github.com/<my-github-username>/middleman-automatic-clowncar/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
middleman-automatic-clowncar-0.0.1 | README.md |