2019-09-20 13:03:18 +00:00
|
|
|
import ../utils
|
|
|
|
export utils
|
|
|
|
|
2019-09-06 00:42:35 +00:00
|
|
|
template cookiePrefs*(): untyped {.dirty.} =
|
|
|
|
getPrefs(request.cookies.getOrDefault("preferences"))
|
|
|
|
|
|
|
|
template getPath*(): untyped {.dirty.} =
|
|
|
|
$(parseUri(request.path) ? filterParams(request.params))
|
|
|
|
|
|
|
|
template refPath*(): untyped {.dirty.} =
|
|
|
|
if @"referer".len > 0: @"referer" else: "/"
|