Haml and Sass are templating engines for the two most common types of documents on the web: HTML and CSS, respectively. They are designed to make it both easier and more pleasant to code HTML and CSS documents, by eliminating redundancy, reflecting the underlying structure that the document represents, and providing elegant, easily understandable, and powerful syntax.
here are several ways to use Haml and Sass. They can be used as a plugins for Rails or Merb, or embedded on their own in other applications. The first step of all of these is to install the Haml gem:
gem install haml
To install Haml and Sass as a Rails plugin, just run haml --rails path/to/rails/app and both Haml and Sass will be installed. Views with the .html.haml extension will automatically use Haml. Sass is a little more complicated; .sass files should be placed in public/stylesheets/sass, where they‘ll be automatically compiled to corresponding CSS files in public/stylesheets when needed.
For more information and usage examples see the official Haml homepage.
Author: jadedPixel