Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0313e2c
commit 5023f05
Showing
1 changed file
with
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
snippet e | ||
<%= ${1} %> | ||
snippet % | ||
<% ${1} %> | ||
snippet if | ||
<% if ${1:condition} %> | ||
${2} | ||
<% end %> | ||
snippet unless | ||
<% unless ${1:condition} %> | ||
${2} | ||
<% end %> | ||
snippet end | ||
<% end %> | ||
snippet else | ||
<% else %> | ||
snippet conf | ||
<%= content_for :${1} do %> | ||
${2} | ||
<% end %> | ||
snippet slt | ||
<%= stylesheet_link_tag "${1}" %> | ||
snippet jit | ||
<%= javascript_include_tag "${1}" %> | ||
snippet lt | ||
<%= link_to ${1:text}, ${2:path} %> | ||
snippet t | ||
t(:${1}, scope: ${2}) | ||
snippet each | ||
<% @${1}.each do |${2}| %> | ||
${3} | ||
<% end %> |