Gem of the day: haml - abstraction markup language
preamble
If you use RoR [http://en.wikipedia.org/wiki/Ruby_on_Rails] then you already know that
ERuby [http://en.wikipedia.org/wiki/ERuby] is pretty enough and you don’t ever think you need something else.
Haml {markup haiku}
Haml is an alternative way to code your “views”. It can be much easier, look on these examples:
XHTML:
<strong class=”code” id=”message”>Hello, World!</strong>
Haml:
%strong{:class => “code”, :id => “message”} Hello, World!
XHTML:
<div id=’content’>
<div class=’left column’>
<h2>Welcome to our site!>/h2>
<p>
<%= print_information %>
</p>
</div>
<div class=”right column”>
<%= render :partial => “sidebar” %>
</div>
</div>
Haml:
#content
.left.column
%h2 Welcome to our site!
%p= print_information
.right.column= render :partial => “sidebar”
like it .. so give you a try with Haml..
haml site: [http://haml.hamptoncatlin.com/]
haml docs: [http://haml.hamptoncatlin.com/docs/]










