Skip to content

jeff-free/ERB-Sublime-Snippets

Repository files navigation

ERB-Sublime-Snippets

A collection of Sublime Text snippets useful for writing ERB

##Installation

These snippets can now be installed via Sublime Package Control. If you do not use package control, simply checkout the source code into Sublime Text's packages directory. The location is system specific:

For OSX

$ cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/
$ git clone git://github.com/matthewrobertson/ERB-Sublime-Snippets.git ERB_Snipptes

For Windows

$ cd %APPDATA%/Sublime Text 2/Packages/
$ git clone git://github.com/matthewrobertson/ERB-Sublime-Snippets.git ERB_Snipptes

For Linux

$ cd ~/.Sublime Text 2/Packages/
$ git clone git://github.com/matthewrobertson/ERB-Sublime-Snippets.git ERB_Snipptes

##Snippets and Bindings

Snippet Tab Trigger Output
ERB tags __er__ `<% %>`
print ERB tags __pe__ `<%= %>`
`if` block __if__ `<% if %>...<% end %>`
`if` / `else` block __ife__ `<% if %>...<% else %>...<% end %>`
`end` block __end__ `<% end %>`
`link_to` helper __lt__ `<%= link_to ..., ... %>`

##Questions, Comments, Concerns?

Feel free to submit a pull request with any snippets you would like to add to the project. If you have any problems or suggestions you can contact me on twitter.

##License

Released under WTFPL, Version 2

About

A collection of sublime text snippets useful for coding ERB templates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published