Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on HAML: the unforgivable sin.
instead of:
<%= tag "div", {:id => "city", :data => {:name => "Boise", :rating => "good"}} %>
I can do
#city{:data => {:name => "Boise", :rating => "good"}}
Which is basically the same thing. All haml does is encourage using a taghelper like syntax for everything.
There are no comments on this comment yet.
instead of:
<%= tag "div", {:id => "city", :data => {:name => "Boise", :rating => "good"}} %>
I can do
#city{:data => {:name => "Boise", :rating => "good"}}
Which is basically the same thing. All haml does is encourage using a taghelper like syntax for everything.