Created
May 30, 2013 12:39
-
-
Save jbonney/5677539 to your computer and use it in GitHub Desktop.
Code snippet for sublime text: ERB if-else statement
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[ | |
<% if ${1:condition} -%> | |
${2:html} | |
<% else -%> | |
${3:html} | |
<% end -%> | |
]]></content> | |
<description>if-else autocompletion in ERB</description> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>ife</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>text.html.ruby</scope> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment