Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding erb snippets

  • Loading branch information...
commit 5023f0503d68a5196a64a9a3e50073f9fc6d1786 1 parent 0313e2c
Bruno Grasselli authored
Showing with 32 additions and 0 deletions.
  1. +32 −0 snippets/eruby.snippets
32 snippets/eruby.snippets
View
@@ -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 %>
Please sign in to comment.
Something went wrong with that request. Please try again.