Skip to content

Commit 1ba74a5

Browse files
committed
Merge pull request #33 from rodrigoddalmeida/eex-snippets
adds some eex snippets
2 parents b381de0 + 6e1ab63 commit 1ba74a5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

snippets/language-elixir.cson

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,25 @@
5353
'test':
5454
'prefix': 'test'
5555
'body': 'test "$1" do\n\t$0\nend'
56+
'.text.elixir':
57+
'<% inline %>':
58+
'prefix': '%'
59+
'body': '<% $0 %>'
60+
'<%= replace %>':
61+
'prefix': '%='
62+
'body': '<%= $0 %>'
63+
'<%% quotation %>':
64+
'prefix': '%%'
65+
'body': '<%% $0 %>'
66+
'<%# comment %>':
67+
'prefix': '%#'
68+
'body': '<%# $0 %>'
69+
'if':
70+
'prefix': 'if'
71+
'body': '<%= if ${1:true} do %>\n\t$0\n<% end %>'
72+
'if/else':
73+
'prefix': 'ife'
74+
'body': '<%= if ${1:true} do %>\n\t$2\n<% else %>\n\t$0\n<% end %>'
75+
'for':
76+
'prefix': 'for'
77+
'body': '<%= for ${1:el} <- ${2:list} do %>\n\t$0\n<% end %>'

0 commit comments

Comments
 (0)