This is an example of using Haml from the command line.
The generate.rb file has a decent number of comments that should help you understand what's going on. In addition, I wrote a blog post that provides some background and explanation.
To run this example, first do a bundle install to get the necessary gems. Then running ./generate.rb from the repository root will generate index.html and another_page.html as examples.
Simplified BSD License. See the LICENSE file for details.