Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 31 lines (30 sloc) 0.793 kb
ed87446 @marcinbunsch added a handleonses
authored
1 # look ma, comments!!
2 == get /form
3 <form action="/foo" method="post">
4 <input type="hidden" name="_method" value="delete" />
5 <input type="text" name="bla" />
6 <input type="submit" value="Send" />
7 </form>
8 == post /foo
9 This only gets sent if you send a post request
10 # Rails based REST is supported
11 == put /foo
12 This only gets sent if you send a put request
13 == delete /foo
14 This only gets sent if you send a delete request
15 # specific urls are evaluated before generic ones
16 == get /users/3
17 User 3!!
18 == get /users/*
19 Some User!!
20 # you can specify content-type as the third parameter, default is text/html
21 == get /foo
22 normal html
23 # is the same as
24 == get /foo text/html
25 normal html
26 # if you use more spaces, it won't matter
27 == get /boo text/javascript
28 javascript
29 == get /somecss/foo text/css
30 css
Something went wrong with that request. Please try again.