Ryan Full-tilt, full-stack developer, from JS -> SQL and everything in between.
5 min read

Multi-line Ruby block in HAML

I always seem to forget the syntax for multi-line syntax in haml. You can also use :css, :javascript

:ruby
  first_name = "Ryan"
  last_name = "L'Italien"
%h1
  = "#{last_name}, #{first_name}"

Source: http://makandracards.com/makandra/2797-multi-line-ruby-block-in-haml