• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

erb-snippets

Useful snippets and hotkeys for ERB templates.
  • #erb
  • #snippets
  • #hotkeys
  • #templates
MartinPeverelli
8,153
17
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

erb-snippets

Snippets and tags hotkey useful for writing ERB.

ERB tags:

command+shift+.

Supports multiple line/selection. Cycles through the tags.

ERB Tags animation

Credits to @eddorre, I did the conversion from his original SublimeText2 plugin. https://github.com/eddorre/SublimeERB

ERB snippets:

if+tab

<% if {condition} %>
  {true-block}
<% end %>

ife+tab

<% if {condition} %>
  {true-block}
<% else %>
  {false-block}
<% end %>

else+tab

<% else %>

elsif+tab

<% elsif {condition} %>

unless+tab

<% unless {condition} %>
  {false-block}
<% end %>

end+tab

<% end %>

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by