commit
0fc7fd1181
@ -1,37 +1,29 @@
|
|||||||
snippet %
|
snippet %
|
||||||
<% ${0} %>
|
<% ${0} %>
|
||||||
|
|
||||||
snippet =
|
snippet =
|
||||||
<%= ${0} %>
|
<%= ${0} %>
|
||||||
|
|
||||||
snippet end
|
snippet end
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
snippet for
|
snippet for
|
||||||
<%= for ${1:item} <- ${2:items} ${3:@conn} do %>
|
<%= for ${1:item} <- ${2:items} ${3:@conn} do %>
|
||||||
${0}
|
${0}
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
snippet if
|
snippet if
|
||||||
<%= if ${1} do %>
|
<%= if ${1} do %>
|
||||||
${0}
|
${0}
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
snippet ife
|
snippet ife
|
||||||
<%= if ${1} do %>
|
<%= if ${1} do %>
|
||||||
${2}
|
${2}
|
||||||
<%= else %>
|
<%= else %>
|
||||||
${0}
|
${0}
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
snippet ft
|
snippet ft
|
||||||
<%= form_tag(${1:"/users"}, method: ${2::post}) %>
|
<%= form_tag(${1:"/users"}, method: ${2::post}) %>
|
||||||
${0}
|
${0}
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
snippet lin
|
snippet lin
|
||||||
<%= link "${1:Submit}", to: ${2:"/users"}, method: ${3::delete} %>
|
<%= link "${1:Submit}", to: ${2:"/users"}, method: ${3::delete} %>
|
||||||
|
|
||||||
snippet ff
|
snippet ff
|
||||||
<%= form_for @changeset, ${1:"/users"}, fn f -> %>
|
<%= form_for @changeset, ${1:"/users"}, fn f -> %>
|
||||||
${0}
|
${0}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user