From fb20738cf4082212d5021c031f1d621352308a7c Mon Sep 17 00:00:00 2001 From: babybeasimple Date: Thu, 6 Jun 2013 01:20:03 +0400 Subject: [PATCH] fix haml render snipets --- snippets/haml.snippets | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/snippets/haml.snippets b/snippets/haml.snippets index 61e9cf2..4491c2b 100644 --- a/snippets/haml.snippets +++ b/snippets/haml.snippets @@ -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}