vim-snippets/UltiSnips/eelixir.snippets

40 lines
590 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
2015-04-03 06:38:47 -04:00
snippet for
<%= for ${1:item} <- ${2:$1s} ${3:@conn} do %>
$0
<% end %>
endsnippet
2015-03-16 19:06:58 -04:00
snippet ft "form_tag" w
<%= form_tag(${1:"${2:/users}"}, method: ${3::post}) %>
$0
</form>
endsnippet
snippet lin "link" w
2015-03-19 06:27:33 -04:00
<%= link ${1:"${2:Submit}"}, to: ${3:"${4:/users}"}, method: ${5::delete} %>
2015-03-16 18:50:34 -04:00
endsnippet
2015-03-16 19:30:02 -04:00
snippet ff "form_for" w
<%= form_for @changeset, ${1:"${2:/users}"}, fn f -> %>
$0
<%= submit "Submit" %>
<% end %>
endsnippet