first commit of a million rails snippets, conditions missing, command implementation missing...

This commit is contained in:
capitaomorte
2009-11-16 07:09:38 +00:00
parent ead36b2544
commit 96b5606d66
213 changed files with 1592 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
# -*- mode: snippet -*-
# contributor: Translated from TextMate Snippet
# name: respond_to (html)
## binding: "@H"
## condition: "meta.rails.controller"
# --
respond_to do |wants|
wants.html do
`yas/selected-text`
end
wants.${1:js} { $0 }
end

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# key: rest
# contributor: Translated from TextMate Snippet
# name: respond_to
## condition: "meta.rails.controller"
# --
respond_to do |wants|
wants.${1:html}${2: { $0 \}}
end

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: wants
# contributor: Translated from TextMate Snippet
# name: wants.format
## condition: "meta.rails.controller"
# --
wants.${1:js|xml|html}${2: { $0 \}}