Elixir form snippets

This commit is contained in:
Louis Pilfold 2015-03-16 23:30:02 +00:00
parent 1f0932bba5
commit 94d3dab682
3 changed files with 16 additions and 1 deletions

View File

@ -205,7 +205,7 @@ to maintain snippets for a language, please get in touch.
Notes: People are interested in snippets - and their interest may wane again.
This list is kept up-to-date on a best effort basis.
* Elixir - [iurifq](https://github.com/iurifq)
* Elixir - [lpil](https://github.com/iurifq), [iurifq](https://github.com/iurifq)
* Falcon - [steveno](https://github.com/steveno)
* HTML Django - [honza](http://github.com/honza)
* Javascript - [honza](http://github.com/honza)

View File

@ -23,3 +23,11 @@ endsnippet
snippet lin "link" w
<%= link ${1:"${2:Submit}"}, to: ${3:"${4:/users}"}, method: ${5::delete}) %>
endsnippet
snippet ff "form_for" w
<%= form_for @changeset, ${1:"${2:/users}"}, fn f -> %>
$0
<%= submit "Submit" %>
<% end %>
endsnippet

View File

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