# ElastiCSS for Rails 3.1 Asset Pipeline ElastiCSS is a simple css framework to layout web-based interfaces, based on the printed layout techniques of 4 columns but with capabilities to unlimited column combinations. and capacity to make elastic, fixed and liquid layout easily elasticss-rails project integrates ElastiCSS framework for Rails 3.1 Asset Pipeline (Rails 3.2 supported) [![Build Status](https://secure.travis-ci.org/kurenn/elasticss-rails.png?branch=master)](http://travis-ci.org/kurenn/elasticss-rails) ## Installing Gem Include ElastiCSS in Gemfile; ```ruby gem "elasticss-rails" ``` or you can install from latest build; ```ruby gem 'elasticss-rails', :git => 'git@github.com:kurenn/elasticss-rails.git' ``` Install the gem using the bundle command: bundle install ## Add elasticss CSS assets Add to your `app/assets/stylesheets/application.css` *= require elastic If you need to add the print support you can add it as well *= require elastic.print ## Add elasticss JS assets Add to your `app/assets/javascripts/application.js` //= require elastic ## Layout generators Layout (generates ElastiCSS layout) - (ERB and HAML supported): You need to first add the haml-rails to the gemfile: gem 'haml-rails' And last but not least if you want HAML to be your default template engine you need to change your config/application.rb file as shown: config.generators do |generator| generator.template_engine :haml end Usage: rails g elasticss:layout [LAYOUT_NAME] [LAYOUT_TYPE] Example: rails g elasticss:layout application 3_columns But wait there is more: rails g elasticss:layout application right_sidebar rails g elasticss:layout application left_sidebar ## Changelog