Skip to content

Instantly share code, notes, and snippets.

@jbonney
Created May 30, 2013 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbonney/5677519 to your computer and use it in GitHub Desktop.
Save jbonney/5677519 to your computer and use it in GitHub Desktop.
Code snippet for sublime text: ERB if statement
<snippet>
<content><![CDATA[
<% if ${1:condition} -%>
${2:html}
<% end -%>
]]></content>
<description>if autocompletion with ERB</description>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>if</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