Skip to content

Commit

Permalink
Fix @ in 0.12.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
dom96 committed Nov 7, 2015
1 parent 321a766 commit fd90a84
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jester.nim
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,10 @@ template attachment*(filename = ""): stmt =
template `@`*(s: string): expr =
## Retrieves the parameter ``s`` from ``request.params``. ``""`` will be
## returned if parameter doesn't exist.
request.params[s]
if request.params.hasKey(s):
request.params[s]
else:
""

proc setStaticDir*(request: Request, dir: string) =
## Sets the directory in which Jester will look for static files. It is
Expand Down

0 comments on commit fd90a84

Please sign in to comment.