add if/ife snippets to eruby

This commit is contained in:
George Lee 2013-06-10 21:37:09 +08:00
parent 56fe095802
commit 057a066f9c

View File

@ -111,3 +111,13 @@ snippet slt
<%= stylesheet_link_tag ${1::all}, :cache => ${2:true} %>
snippet sslt
<%= stylesheet_link_tag "${1}" %>
snippet if
<% if ${1} %>
${2}
<% end %>
snippet ife
<% if ${1} %>
${2}
<% else %>
${3}
<% end %>