mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-15 01:44:19 +00:00
first commit of a million rails snippets, conditions missing, command implementation missing...
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user