Skip to content

Commit

Permalink
added a link_to snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewrobertson committed Jul 19, 2012
1 parent 9fb4400 commit adbb636
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ Simple checkout the source code into Sublime Text's packages directory. The loca
<td>__end__</td>
<td>`<% end %>`</td>
</tr>
<tr>
<td>`link_to` helper</td>
<td>__lt__</td>
<td>`<%= link_to ..., ... %>`</td>
</tr>
<table>

##License
Expand Down
8 changes: 8 additions & 0 deletions link_to.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[<%= link_to $1, $2 %>]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>lt</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html.ruby, text.haml, source.yaml, source.css, source.scss, source.js, source.coffee</scope>
<description>insert a rails view link_to helper</description>
</snippet>

0 comments on commit adbb636

Please sign in to comment.