Elixir form snippets
This commit is contained in:
parent
1f0932bba5
commit
94d3dab682
@ -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.
|
Notes: People are interested in snippets - and their interest may wane again.
|
||||||
This list is kept up-to-date on a best effort basis.
|
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)
|
* Falcon - [steveno](https://github.com/steveno)
|
||||||
* HTML Django - [honza](http://github.com/honza)
|
* HTML Django - [honza](http://github.com/honza)
|
||||||
* Javascript - [honza](http://github.com/honza)
|
* Javascript - [honza](http://github.com/honza)
|
||||||
|
@ -23,3 +23,11 @@ endsnippet
|
|||||||
snippet lin "link" w
|
snippet lin "link" w
|
||||||
<%= link ${1:"${2:Submit}"}, to: ${3:"${4:/users}"}, method: ${5::delete}) %>
|
<%= link ${1:"${2:Submit}"}, to: ${3:"${4:/users}"}, method: ${5::delete}) %>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet ff "form_for" w
|
||||||
|
<%= form_for @changeset, ${1:"${2:/users}"}, fn f -> %>
|
||||||
|
$0
|
||||||
|
|
||||||
|
<%= submit "Submit" %>
|
||||||
|
<% end %>
|
||||||
|
endsnippet
|
||||||
|
@ -14,3 +14,10 @@ snippet ft
|
|||||||
|
|
||||||
snippet lin
|
snippet lin
|
||||||
<%= link "${1:Submit}", to: ${2:"/users"}, method: ${3::delete}) %>
|
<%= link "${1:Submit}", to: ${2:"/users"}, method: ${3::delete}) %>
|
||||||
|
|
||||||
|
snippet ff
|
||||||
|
<%= form_for @changeset, ${1:"/users"}, fn f -> %>
|
||||||
|
${0}
|
||||||
|
|
||||||
|
<%= submit "Submit" %>
|
||||||
|
<% end %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user