Closed joryhatton closed 8 years ago
@joryhatton I have updated the package to include a configuration module as there are different preferences in regard to this.
Now you can open your configuration, and paste all erb blocks that you'd like to iterate over ( and in the order you'd like to iterate ). You'll have to update your atom configuration manually to change this setting.
In your atom configuration file. Insert each erb block you'd like as an array with the first element as the opening erb and the 2nd element as the closing erb element into rails-snippets
's erbBlocks
configuration array.
As an example:
# config.cson
"*":
# all your configs...
"rails-snippets":
erbBlocks: [
['<%=', '%>']
['<%=', '-%>']
['<%', '%>']
['<%#', '%>']
]
Hope this helps you
This is perfect. Works like a charm! Kudos for the quick turnaround :+1:
A few more snippets should be added to the ERB cycle. I think this is the order and availability in the original Sublime package:
<%= %>
<%= -%>
<%- -%>
<%- %>
<% %>
<%# %>
I especially miss having
<%- -%>
available.