vim-snippets/snippets/eelixir.snippets
2015-03-19 10:28:00 +00:00

24 lines
340 B
Plaintext

snippet %
<% ${0} %>
snippet =
<%= ${0} %>
snippet end
<% end %>
snippet ft
<%= form_tag(${1:"/users"}, method: ${2::post}) %>
${0}
</form>
snippet lin
<%= link "${1:Submit}", to: ${2:"/users"}, method: ${3::delete} %>
snippet ff
<%= form_for @changeset, ${1:"/users"}, fn f -> %>
${0}
<%= submit "Submit" %>
<% end %>