News for hackers. Stuff that matters.
Re:Rails 3.1 Adopts CoffeeScript, jQuery, Sass and.. Controv... by jarin on Thursday April 14, 2011 @02:03AM (#2445818)
Just a tip: most of the time, when your haml gets messy, you can clean it up dramatically by using the :textile, :markdown, or :javascript formatters (or just put regular HTML in the :erb or :plain formatters).
Re:Rails 3.1 Adopts CoffeeScript, jQuery, Sass and.. Controv... by epochwolf on Thursday April 14, 2011 @10:58AM (#2447053)
I did not know of the :erb/:plain formatters, thanks for the suggestion.
Re:Rails 3.1 Adopts CoffeeScript, jQuery, Sass and.. Controv... by jarin on Thursday April 14, 2011 @08:59PM (#2449079)
You can even use string interpolation in them :)

i.e.:

  :textile
    Hi, my name is *#{@user.name}*!