Permalink
Browse files

jester works with latest compiler again

  • Loading branch information...
1 parent d844fab commit 4cac97da580299b436abaff4abef71480a0bdbf1 @Araq Araq committed Mar 17, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 jester.nim
View
@@ -402,7 +402,7 @@ template matchAddPattern(meth: THttpCode, path: string,
setDefaultResp()
body)))
-template get*(path: string, body: stmt): stmt =
+template get*(path: string, body: stmt): stmt {.immediate.} =
## Route handler for GET requests.
##
## ``path`` may contain named parameters, for example ``@param``. These
@@ -411,7 +411,7 @@ template get*(path: string, body: stmt): stmt =
bind HttpGet, matchAddPattern
matchAddPattern(HttpGet, path, body)
-template getRe*(rePath: TRegexMatch, body: stmt): stmt =
+template getRe*(rePath: TRegexMatch, body: stmt): stmt {.immediate.} =
block:
bind j, PMatch, TRequest, TCallbackRet, setDefaultResp, HttpGet
var match: PMatch
@@ -422,7 +422,7 @@ template getRe*(rePath: TRegexMatch, body: stmt): stmt =
setDefaultResp()
body)))
-template post*(path: string, body: stmt): stmt =
+template post*(path: string, body: stmt): stmt {.immediate.} =
## Route handler for POST requests.
##
## ``path`` behaves in the same way as with the ``get`` template.

0 comments on commit 4cac97d

Please sign in to comment.