Atom Packages Directory

a package directory for a text editor of the 21st Century

Erb Snippets

Install with:
    apm install erb-snippets


Snippets and tags hotkey useful for writing ERB.

ERB tags:


Supports multiple line/selection. Cycles through the tags.

ERB Tags animation

Credits to @eddorre, I did the conversion from his original SublimeText2 plugin.

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 %>

Keywords: erb, snippets, hotkeys, templates Suggest keywords
Fork me on GitHub