GithubHelp home page GithubHelp logo

turadg / erb-sublime-snippets Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matthewrobertson/erb-sublime-snippets

0.0 3.0 0.0 101 KB

A collection of sublime text snippets useful for coding ERB templates

Home Page: https://github.com/matthewrobertson/ERB-Sublime-Snippets

License: Do What The F*ck You Want To Public License

erb-sublime-snippets's Introduction

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

erb-sublime-snippets's People

Contributors

matthewrobertson avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.