Liking cljdoc? Tell your friends :D

net.cgrand.moustache

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.
raw docstring

alter-requestclj

(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.
sourceraw docstring

alter-responseclj

(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.
sourceraw docstring

appcljmacro

(app & forms)

The main form.

The main form.
sourceraw docstring

compile-response-mapclj

(compile-response-map m)
source

delegateclj

(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.
sourceraw docstring

match-routeclj

(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.
sourceraw docstring

not-foundclj

Handler that always return a 404 Not Found status.

Handler that always return a 404 Not Found status.
sourceraw docstring

passclj

Handler that causes the framework to fall through the next handler

Handler that causes the framework to fall through the next handler
sourceraw docstring

path-infoclj

(path-info req)
source

path-info-segmentsclj

(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.
sourceraw docstring

uriclj

(uri segments)

Turns a seq of decoded segment into an uri.

Turns a seq of decoded segment into an uri.
sourceraw docstring

uri-segmentsclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close