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,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: hide
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: page.hide (*ids)
|
||||
## condition: "source.ruby.rails.rjs"
|
||||
# --
|
||||
page.hide ${1:"${2:id(s)}"}
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: ins
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: page.insert_html (position, id, partial)
|
||||
## condition: "source.ruby.rails.rjs"
|
||||
# --
|
||||
page.insert_html :${1:top}, ${2:"${3:id}"}, :${4:partial => "${5:template}"}
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: rep
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: page.replace (id, partial)
|
||||
## condition: "source.ruby.rails.rjs"
|
||||
# --
|
||||
page.replace ${1:"${2:id}"}, :${3:partial => "${4:template}"}
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: reph
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: page.replace_html (id, partial)
|
||||
## condition: "source.ruby.rails.rjs"
|
||||
# --
|
||||
page.replace_html ${1:"${2:id}"}, :${3:partial => "${4:template}"}
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: show
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: page.show (*ids)
|
||||
## condition: "source.ruby.rails.rjs"
|
||||
# --
|
||||
page.show ${1:"${2:id(s)}"}
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: tog
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: page.toggle (*ids)
|
||||
## condition: "source.ruby.rails.rjs"
|
||||
# --
|
||||
page.toggle ${1:"${2:id(s)}"}
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: vis
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: page.visual_effect (effect, id)
|
||||
## condition: "source.ruby.rails.rjs"
|
||||
# --
|
||||
page.visual_effect :${1:toggle_slide}, ${2:"${3:DOM ID}"}
|
||||
Reference in New Issue
Block a user