Sublime Forum

Emmet: How do you make .erb snippets?

#1

I want to create a snippet that expands expands erb tags in erb files, but I can’t get it to work. I have my Emmet.sublime-settings file pointing to the directory with my snippets-custom.json file, which has these lines:

{
  "eruby": {
    "extends": "html",
    "snippets": {
      "erb": "<%= | %>\n\t${child}<% end %>"
    }
  }
}

I’ve been messing with this for a few hours and doing my best to research it, but I’m stuck. Thanks for any help!

0 Likes