Created
August 14, 2012 15:55
-
-
Save knomedia/3350459 to your computer and use it in GitHub Desktop.
ERB Sublime Text 2 snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[<% ${1:@Items}.each do |${2:item}| %> | |
$3 | |
<% end %> | |
$0]]></content> | |
<!-- Optional: Tab trigger to activate the snippet --> | |
<tabTrigger>each</tabTrigger> | |
<!-- Optional: Scope the tab trigger will be active in --> | |
<scope>text.html.ruby</scope> | |
<!-- Optional: Description to show in the menu --> | |
<description>ERB Each Loop</description> | |
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[<%${1:=} $2 %>$0]]></content> | |
<!-- Optional: Tab trigger to activate the snippet --> | |
<tabTrigger>e</tabTrigger> | |
<!-- Optional: Scope the tab trigger will be active in --> | |
<scope>text.html.ruby</scope> | |
<!-- Optional: Description to show in the menu --> | |
<description>ERB Eval</description> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment