mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-16 02:14:17 +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: xdelete
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: xhr delete
|
||||
## condition: "source.ruby.rails"
|
||||
# --
|
||||
xhr :delete, :${1:destroy}, :id => ${2:1}$0
|
||||
7
extras/imported/rails-mode/Ajax Tests/xhr get.yasnippet
Normal file
7
extras/imported/rails-mode/Ajax Tests/xhr get.yasnippet
Normal file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: xget
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: xhr get
|
||||
## condition: "source.ruby.rails"
|
||||
# --
|
||||
xhr :get, :${1:show}${2:, :id => ${3:1}}$0
|
||||
7
extras/imported/rails-mode/Ajax Tests/xhr post.yasnippet
Normal file
7
extras/imported/rails-mode/Ajax Tests/xhr post.yasnippet
Normal file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: xpost
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: xhr post
|
||||
## condition: "source.ruby.rails"
|
||||
# --
|
||||
xhr :post, :${1:create}, :${2:object} => { $3 }
|
||||
7
extras/imported/rails-mode/Ajax Tests/xhr put.yasnippet
Normal file
7
extras/imported/rails-mode/Ajax Tests/xhr put.yasnippet
Normal file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: xput
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: xhr put
|
||||
## condition: "source.ruby.rails"
|
||||
# --
|
||||
xhr :put, :${1:update}, :id => ${2:1}, :${3:object} => { $4 }$0
|
||||
Reference in New Issue
Block a user