2015-02-24 23:03:33 +00:00
|
|
|
snippet %
|
|
|
|
<% ${0} %>
|
2015-03-16 23:06:58 +00:00
|
|
|
|
2015-02-24 23:03:33 +00:00
|
|
|
snippet =
|
2015-03-16 23:06:58 +00:00
|
|
|
<%= ${0} %>
|
|
|
|
|
2015-02-24 23:03:33 +00:00
|
|
|
snippet end
|
|
|
|
<% end %>
|
2015-03-16 23:06:58 +00:00
|
|
|
|
2015-04-03 11:38:47 +01: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 23:06:58 +00:00
|
|
|
snippet ft
|
|
|
|
<%= form_tag(${1:"/users"}, method: ${2::post}) %>
|
|
|
|
${0}
|
|
|
|
</form>
|
|
|
|
|
|
|
|
snippet lin
|
2015-03-19 10:27:33 +00:00
|
|
|
<%= link "${1:Submit}", to: ${2:"/users"}, method: ${3::delete} %>
|
2015-03-16 23:30:02 +00:00
|
|
|
|
|
|
|
snippet ff
|
|
|
|
<%= form_for @changeset, ${1:"/users"}, fn f -> %>
|
|
|
|
${0}
|
|
|
|
|
|
|
|
<%= submit "Submit" %>
|
|
|
|
<% end %>
|