fix haml render snipets

This commit is contained in:
babybeasimple 2013-06-06 01:20:03 +04:00
parent bc17b3d023
commit fb20738cf4

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}