Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

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