vim-snippets/UltiSnips/eelixir.snippets

26 lines
374 B
Plaintext
Raw Normal View History

2015-03-04 09:35:32 -05:00
priority -50
extends html
2015-03-16 18:50:34 -04:00
snippet % "<% %>" w
2015-03-16 19:06:58 -04:00
<% $0 %>
2015-03-16 18:50:34 -04:00
endsnippet
snippet = "<%= %>" w
2015-03-16 19:06:58 -04:00
<%= $0 %>
2015-03-16 18:50:34 -04:00
endsnippet
snippet end "<% end %>" w
2015-03-16 19:06:58 -04:00
<% end %>
endsnippet
snippet ft "form_tag" w
<%= form_tag(${1:"${2:/users}"}, method: ${3::post}) %>
$0
</form>
endsnippet
snippet lin "link" w
<%= link ${1:"${2:Submit}"}, to: ${3:"${4:/users}"}, method: ${5::delete}) %>
2015-03-16 18:50:34 -04:00
endsnippet