Skip to content

Commit 32b6b9c

Browse files
committed
📝
1 parent 11e5df0 commit 32b6b9c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,31 @@ Please fork this repository and open a pull request to add / improve snippets.
1010
## Features
1111
* Snippets with nice defaults that are definitely going to save your a lot of time.
1212

13-
* Support for the great [package](https://github.com/eddorre/SublimeERB) by [@eddorre](https://github.com/eddorre/):
13+
* [Toggle between erb blocks](https://github.com/eddorre/SublimeERB):
1414

1515
![demo](http://cl.ly/image/1P2E1x0h210l/toggle_erb.gif)
1616

1717
Toggle with: <kbd>cmd</kbd> + <kbd>></kbd>
1818

1919
(In american keyboard: <kbd>shift</kbd> + <kbd>cmd</kbd> + <kbd>.</kbd>)
2020

21+
#### Customize ERB Blocks (extra configuration)
22+
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 into rails-snippets's erbBlocks configuration array.
23+
24+
As an example of how'd look like:
25+
```
26+
# config.cson
27+
"*":
28+
# all your configs...
29+
"rails-snippets":
30+
erbBlocks: [
31+
['<%=', '%>']
32+
['<%', '%>']
33+
['<%#', '%>']
34+
]
35+
```
36+
If you can stick to the default (above) you don't have to do anything. Otherwise add or remove erb blocks in the order you'd like.
37+
2138
## Conventions
2239
The conventions for the snippets are usually the initials for the method.
2340

0 commit comments

Comments
 (0)