Created
July 3, 2009 19:45
-
-
Save asandroq/140277 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; hypothetical Scheme web DSL | |
;; note that the macro binds the URI variables | |
;; to local variables | |
(GET "/api/show/:user/:repo" | |
(if (user-has-repo? user repo) | |
(render-repo-xml user repo) | |
...)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment