In haml two operators are used for ruby code.
=
is used for ruby code which is evaluated and gets inserted into document.
Example:
= form_for @user
-
is used for ruby code which is evaluated and NOT get inserted into document.
Example:
- if @user.signed_in?
= "Hi"
- else
= "Please sign in!"