Moustache is a micro web framework/internal DSL to wire Ring handlers and middlewares.
Moustache is a micro web framework/internal DSL to wire Ring handlers and middlewares.
(alter-request handler f & args)Middleware that passes (apply f request args) to handler instead of request.
Middleware that passes (apply f request args) to handler instead of request.
(alter-response handler f & args)Middleware that returns (apply f response args) instead of response.
Middleware that returns (apply f response args) instead of response.
(delegate f & args)Take a function and all the normal arguments to f but the first, and returns a 1-argument fn.
Take a function and all the normal arguments to f but the first, and returns a 1-argument fn.
(match-route segments route)Returns a vector (possibly empty) of matched segments or nil if the route doesn't match.
Returns a vector (possibly empty) of matched segments or nil if the route doesn't match.
Handler that always return a 404 Not Found status.
Handler that always return a 404 Not Found status.
Handler that causes the framework to fall through the next handler
Handler that causes the framework to fall through the next handler
(path-info-segments req)Splits the path-info of the given request map around / and decode segments.
Splits the path-info of the given request map around / and decode segments.
(uri segments)Turns a seq of decoded segment into an uri.
Turns a seq of decoded segment into an uri.
(uri-segments req)Splits the uri of the given request map around / and decode segments.
Splits the uri of the given request map around / and decode segments.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |