Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit e9c8dc5

Browse files
jtokophrebornix
authored andcommitted
Add common ERB snippets (#108)
Adds `<% %>` and `<%= %>`
1 parent 7bdadfa commit e9c8dc5

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

snippets/erb.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,19 @@
6868
"<% end %>"
6969
],
7070
"description": "each do"
71+
},
72+
"render": {
73+
"prefix": "pe",
74+
"body": [
75+
"<%= $1 %>"
76+
],
77+
"description": "render block pe"
78+
},
79+
"exec": {
80+
"prefix": "er",
81+
"body": [
82+
"<% $1 %>"
83+
],
84+
"description": "erb exec block"
7185
}
7286
}
73-

0 commit comments

Comments
 (0)