Skip to content

Commit

Permalink
REST snippet
Browse files Browse the repository at this point in the history
A mirrored snippet that does get/post/put/delete with same path
  • Loading branch information
rawburt committed Jul 12, 2008
1 parent f8fbded commit 6eb6135
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
30 changes: 30 additions & 0 deletions Sinatra.tmbundle/Snippets/rest.tmSnippet
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>get '/${1:path}' do
${2}
end
post '/${1}' do
${3}
end
put '/${1}' do
${4}
end
delete '/${1}' do
${5}
end</string>
<key>name</key>
<string>rest</string>
<key>scope</key>
<string>source.ruby</string>
<key>tabTrigger</key>
<string>rest</string>
<key>uuid</key>
<string>5729FF0D-EAB6-4288-9955-0A8BF789139C</string>
</dict>
</plist>
5 changes: 4 additions & 1 deletion Sinatra.tmbundle/info.plist
Expand Up @@ -31,9 +31,11 @@
<array>
<string>4B4318AB-0E4E-4F54-98FE-9EFD9CA11745</string>
<string>25E07F8C-81AC-434D-96F1-7270670262F7</string>
<string>AD45BEFA-023E-43DF-86F2-48F6EE9F78A1</string>
<string>087BFE00-EE76-44FF-9A48-F84E9409D97C</string>
<string>AD45BEFA-023E-43DF-86F2-48F6EE9F78A1</string>
<string>57150DAA-31B7-47F7-8A9C-661E18C05EB7</string>
<string>------------------------------------</string>
<string>5729FF0D-EAB6-4288-9955-0A8BF789139C</string>
</array>
<key>name</key>
<string>REST</string>
Expand All @@ -60,6 +62,7 @@
<string>087BFE00-EE76-44FF-9A48-F84E9409D97C</string>
<string>AD45BEFA-023E-43DF-86F2-48F6EE9F78A1</string>
<string>57150DAA-31B7-47F7-8A9C-661E18C05EB7</string>
<string>5729FF0D-EAB6-4288-9955-0A8BF789139C</string>
<string>139FE9EC-9475-4BA7-B1DB-890CE5569269</string>
<string>8A0F3882-95D4-460B-B136-8E7549725A08</string>
<string>E39D5C9C-309F-4AF2-9413-7C427888C3DB</string>
Expand Down

0 comments on commit 6eb6135

Please sign in to comment.