vim-snippets/snippets/eelixir.snippets

41 lines
540 B
Plaintext
Raw Normal View History

2015-02-24 18:03:33 -05:00
snippet %
<% ${0} %>
2015-03-16 19:06:58 -04:00
2015-02-24 18:03:33 -05:00
snippet =
2015-03-16 19:06:58 -04:00
<%= ${0} %>
2015-02-24 18:03:33 -05:00
snippet end
<% end %>
2015-03-16 19:06:58 -04:00
2015-04-03 06:38:47 -04:00
snippet for
<%= for ${1:item} <- ${2:items} ${3:@conn} do %>
${0}
<% end %>
snippet if
<%= if ${1} do %>
${0}
<% end %>
snippet ife
<%= if ${1} do %>
${2}
<%= else %>
${0}
<% end %>
2015-03-16 19:06:58 -04:00
snippet ft
<%= form_tag(${1:"/users"}, method: ${2::post}) %>
${0}
</form>
snippet lin
2015-03-19 06:27:33 -04:00
<%= link "${1:Submit}", to: ${2:"/users"}, method: ${3::delete} %>
2015-03-16 19:30:02 -04:00
snippet ff
<%= form_for @changeset, ${1:"/users"}, fn f -> %>
${0}
<%= submit "Submit" %>
<% end %>