diff --git a/snippets/haml.snippets b/snippets/haml.snippets index 4491c2b..939158d 100644 --- a/snippets/haml.snippets +++ b/snippets/haml.snippets @@ -19,4 +19,12 @@ snippet rpl = render :partial => "${1:item}", :locals => { :${2:$1} => ${3:@$1} snippet rpo = render :partial => "${1:item}", :object => ${2:@$1} +snippet ife + - if ${1:condition} + ${2} + - else + ${3} +snippet ifp + - if ${1:condition}.presence? + ${2}