forked from matthewrobertson/ERB-Sublime-Snippets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added label_tag helper. password_tag support added submit tag and fixed password_tag description Added new snips to readme
- Loading branch information
Rob Levin
committed
Jan 14, 2014
1 parent
5b1fd54
commit 8a15bc6
Showing
5 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[<%= label_tag (:${1:thing}, "${2:Your label text}" %>]]></content> | ||
<tabTrigger>lblt</tabTrigger> | ||
<scope>text.html.ruby</scope> | ||
<description>insert a rails view label_tag helper</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[<%= password_field_tag(:${1:thing} %>]]></content> | ||
<tabTrigger>pft</tabTrigger> | ||
<scope>text.html.ruby</scope> | ||
<description>insert a rails view password_field_tag helper</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[<%= submit_tag "${1:My Button Text}", class: "${2:class}" %>]]></content> | ||
<tabTrigger>st</tabTrigger> | ||
<scope>text.html.ruby</scope> | ||
<description>insert a rails view submit_tag helper</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[<%= text_field_tag "${1:name}", "${2:value}", placeholder: "${3:placeholder}", class: "${4:class}" %>]]></content> | ||
<tabTrigger>tft</tabTrigger> | ||
<scope>text.html.ruby</scope> | ||
<description>insert a rails view text_field_tag helper</description> | ||
</snippet> |