mirror of https://github.com/harish2704/dotFiles
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
561 B
37 lines
561 B
snippet %
|
|
<% ${1} %>
|
|
snippet =
|
|
<%= @${1:escaped} %>
|
|
snippet -
|
|
<%- @${1:unescaped} %>
|
|
snippet content
|
|
<%content '${1}'%>${2}
|
|
snippet block
|
|
<% block '${1}' : %>
|
|
${2}
|
|
<% end %>${3}
|
|
snippet extend
|
|
<% extend '${1:layout}' %>
|
|
snippet if
|
|
<% if @${1}?${2:.length} : %>
|
|
${3}
|
|
<% else : %>
|
|
${4}
|
|
<% end %>
|
|
snippet switch
|
|
<% switch @${1} : %>
|
|
<% when '${2}' : %>
|
|
${3}
|
|
<% end %>
|
|
<% else : %>
|
|
${4}
|
|
<% end %>
|
|
<% end %>${5}
|
|
snippet when
|
|
<% when '${1}' : %>
|
|
${2}
|
|
<% end %>${3}
|
|
snippet for
|
|
<% for ${1:item} in @${2:$1s} : %>
|
|
${3}
|
|
<% end %>
|
|
|