Merge pull request #218 from babybeasimple/master

fix haml render snippets
This commit is contained in:
Marc Weber 2013-06-05 18:10:14 -07:00
commit 2e0807add6

View File

@ -11,10 +11,12 @@ snippet ul
%li
${1:item}
%li
snippet =rp
= render :partial => '${1:partial}'
snippet =rpl
= render :partial => '${1:partial}', :locals => {}
snippet =rpc
= render :partial => '${1:partial}', :collection => @$1
snippet rp
= render :partial => "${1:item}"
snippet rpc
= render :partial => "${1:item}", :collection => ${2:@$1s}
snippet rpl
= render :partial => "${1:item}", :locals => { :${2:$1} => ${3:@$1}
snippet rpo
= render :partial => "${1:item}", :object => ${2:@$1}