Skip to content

Railsway 09 Berlin -- HAML, SASS (and COMPASS)

A concise note from RailsWay 2009 on Haml filters and embedded JavaScript.

Published
Reading time
1 min read

I visited this talk in order to learn some tricks to improve my HAML usage.
My personal favourite was the importance of filters. Using filters you can write intended javascript in your views.

-content_for :jquery
  :javascript
    function foo(){
      alert('Blah');
    }