Liking cljdoc? Tell your friends :D

coast.router


action-for-routesclj

(action-for-routes routes)

deleteclj


fallback-not-found-pageclj

(fallback-not-found-page _)

find-by-route-nameclj

(find-by-route-name routes k)

getclj


handlerclj

(handler not-found-page)

matchclj

(match request-route route)

method-verb?clj

(method-verb? value)

param-methodclj

(param-method method)

param-reclj


paramsclj

(params s)

patchclj


patternclj

(pattern s)

postclj


putclj


query-stringclj

(query-string m)

replacementclj

(replacement match m)

resolve-routeclj

(resolve-route val)

resolve-route-fnclj

(resolve-route-fn f)

resourceclj

(resource & args)

Creates a set of seven functions that map to a conventional set of named functions. Generates routes that look like this: [[:get "/resources" 'resources/index] [:get "/resources/:id" 'resources/show] [:get "/resources/new" 'resources/new] [:get "/resources/:id/edit" 'resources/edit] [:post "/resources" 'resources/create] [:put "/resources/:id" 'resources/update] [:delete "/resources/:id" 'resources/delete]] Examples: (resource 'items/show 'items/index) (resource 'items/create 'items/delete) (resource 'items/index 'items/create) (resource 'items/index) (resource :items)

Creates a set of seven functions that map to a conventional set of named functions.
Generates routes that look like this:
[[:get    "/resources"          'resources/index]
 [:get    "/resources/:id"      'resources/show]
 [:get    "/resources/new"      'resources/new]
 [:get    "/resources/:id/edit" 'resources/edit]
 [:post   "/resources"          'resources/create]
 [:put    "/resources/:id"      'resources/update]
 [:delete "/resources/:id"      'resources/delete]]
Examples:
(resource 'items/show   'items/index)
(resource 'items/create 'items/delete)
(resource 'items/index  'items/create)
(resource 'items/index)
(resource :items)
raw docstring

resource-routeclj

(resource-route prefix route-ns route)

resource-routesclj

(resource-routes)
(resource-routes symbols)

routeclj

(route method uri f)
(route method routes uri f)

Sugar for making a route vector

Sugar for making a route vector
raw docstring

route-middleware-fnclj

(route-middleware-fn val)

route-nameclj

(route-name route)

route-paramsclj

(route-params req-uri route-uri)

route-strclj

(route-str s m)

route?clj

(route? val)

routes?clj

(routes? args)

unqualified-keyword?clj

(unqualified-keyword? k)

url-encodeclj

(url-encode s)

url-for-routesclj

(url-for-routes routes)

url-for-routes-args?clj

(url-for-routes-args? k m)

verb?clj

(verb? value)

verbsclj


wrap-routeclj

(wrap-route route middleware)

wrap-route-infoclj

(wrap-route-info handler routes)

wrap-routesclj

(wrap-routes routes middleware)

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

× close