1
0
Fork 0
mirror of synced 2024-12-23 07:20:42 -05:00
ultimate-vim/sources_non_forked/vim-snippets/snippets/haml.snippets

38 lines
710 B
Text
Raw Normal View History

2012-08-16 23:41:25 -04:00
snippet t
%table
%tr
%th
${1:headers}
%tr
%td
${0:headers}
2012-08-16 23:41:25 -04:00
snippet ul
%ul
%li
${0:item}
2012-08-16 23:41:25 -04:00
%li
2013-07-17 19:06:05 -04:00
snippet rp
= render :partial => "${0:item}"
2013-07-17 19:06:05 -04:00
snippet rpc
= render :partial => "${1:item}", :collection => ${0:@$1s}
2013-07-17 19:06:05 -04:00
snippet rpl
= render :partial => "${1:item}", :locals => { :${2:$1} => ${0:@$1}
2013-07-17 19:06:05 -04:00
snippet rpo
= render :partial => "${1:item}", :object => ${0:@$1}
snippet lt
= link_to ${1:name}, ${2:dest}
snippet mt
= mail_to ${1:email_address}, ${2:name}
snippet mts
= mail_to ${1:email_address}, ${2:name}, :subject => ${3}, :body => ${4}
2013-07-17 19:06:05 -04:00
snippet ife
- if ${1:condition}
${2}
- else
${0}
2013-07-17 19:06:05 -04:00
snippet ifp
- if ${1:condition}.presence?
${0}
2013-08-03 08:50:12 -04:00
snippet ntc
= number_to_currency(${1})