vim-snippets/UltiSnips/eelixir.snippets

40 lines
590 B
Plaintext
Raw Normal View History

2015-03-04 14:35:32 +00:00
priority -50
extends html
2015-03-16 22:50:34 +00:00
snippet % "<% %>" w
2015-03-16 23:06:58 +00:00
<% $0 %>
2015-03-16 22:50:34 +00:00
endsnippet
snippet = "<%= %>" w
2015-03-16 23:06:58 +00:00
<%= $0 %>
2015-03-16 22:50:34 +00:00
endsnippet
snippet end "<% end %>" w
2015-03-16 23:06:58 +00:00
<% end %>
endsnippet
2015-04-03 11:38:47 +01:00
snippet for
<%= for ${1:item} <- ${2:$1s} ${3:@conn} do %>
$0
<% end %>
endsnippet
2015-03-16 23:06:58 +00:00
snippet ft "form_tag" w
<%= form_tag(${1:"${2:/users}"}, method: ${3::post}) %>
$0
</form>
endsnippet
snippet lin "link" w
2015-03-19 10:27:33 +00:00
<%= link ${1:"${2:Submit}"}, to: ${3:"${4:/users}"}, method: ${5::delete} %>
2015-03-16 22:50:34 +00:00
endsnippet
2015-03-16 23:30:02 +00:00
snippet ff "form_for" w
<%= form_for @changeset, ${1:"${2:/users}"}, fn f -> %>
$0
<%= submit "Submit" %>
<% end %>
endsnippet