Skip to content

Commit 535ee51

Browse files
authored
feat(erb): add link_to & comment block snippet (#549)
1 parent 4875d85 commit 535ee51

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

snippets/erb.json

+10
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,19 @@
5656
"body": ["<%= $1 %>"],
5757
"description": "render block pe"
5858
},
59+
"comment": {
60+
"prefix": ["pc"],
61+
"body": ["<%# $1 %>"],
62+
"description": "erb print comment"
63+
},
5964
"exec": {
6065
"prefix": ["er", "%"],
6166
"body": ["<% $1 %>"],
6267
"description": "erb exec block"
68+
},
69+
"link_to": {
70+
"prefix": ["lt"],
71+
"body": ["<%= link_to $1, $2 %>"],
72+
"description": "link_to helper"
6373
}
6474
}

0 commit comments

Comments
 (0)