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 %li
${1:item} ${1:item}
%li %li
snippet =rp snippet rp
= render :partial => '${1:partial}' = render :partial => "${1:item}"
snippet =rpl snippet rpc
= render :partial => '${1:partial}', :locals => {} = render :partial => "${1:item}", :collection => ${2:@$1s}
snippet =rpc snippet rpl
= render :partial => '${1:partial}', :collection => @$1 = render :partial => "${1:item}", :locals => { :${2:$1} => ${3:@$1}
snippet rpo
= render :partial => "${1:item}", :object => ${2:@$1}