From c3a924d77270269ace7c990ce80179c805ace266 Mon Sep 17 00:00:00 2001 From: babybeasimple Date: Fri, 7 Jun 2013 13:13:19 +0400 Subject: [PATCH] added haml if statements --- snippets/haml.snippets | 8 ++++++++ 1 file changed, 8 insertions(+) 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}