From: Brian Candler Date: 2011-02-21T04:11:10+09:00 Subject: Re: Ruby code embedded in Haml? Josh Cheek wrote in post #982617: > Dashes are for zero-width ruby, such as control characters, and equal > signs > will embed Ruby, ie interpolation. Or perhaps more clearly: a dash is for ruby code where you don't want the result value inserted into the page, and equals is for ruby code where the value of the expression is inserted into the page. > - @ary.each do |element| > %p= element To be clear, this is a shorthand in haml for - @ary.each do |element| %p = element -- Posted via http://www.ruby-forum.com/.