From 62166691a8a84f17f88d5eeb570d525ca2f1f6c0 Mon Sep 17 00:00:00 2001 From: Mike Foley Date: Thu, 15 Aug 2013 12:32:07 -0700 Subject: [PATCH] add link_to, mail_to to haml snippets --- snippets/haml.snippets | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/snippets/haml.snippets b/snippets/haml.snippets index fd66e74..c369d59 100644 --- a/snippets/haml.snippets +++ b/snippets/haml.snippets @@ -19,6 +19,12 @@ snippet rpl = render :partial => "${1:item}", :locals => { :${2:$1} => ${3:@$1} snippet rpo = render :partial => "${1:item}", :object => ${2:@$1} +snippet l link_to + = link_to ${1:name}, ${2:url} +snippet m mail_to + = mail_to ${1:email_address}, ${2:name} +snippet m mail_to subject body + = mail_to ${1:email_address}, ${2:name}, :subject => ${3:subject}, :body snippet ife - if ${1:condition} ${2}