Liking cljdoc? Tell your friends :D

file-server.server.handler


appclj

(app serving-dir)

Handler for the server, accepts just one argument serving-dir, which is the directory path to be served

Handler for the server, accepts just one argument `serving-dir`, which is the directory path to be served
sourceraw docstring

dir-routesclj

(dir-routes root-dir)
source

ignore-trailing-slashclj

(ignore-trailing-slash handler)

Modifies the request uri before calling the handler. Removes a single trailing slash from the end of the uri if present.

Useful for handling optional trailing slashes until Compojure's route matching syntax supports regex. Adapted from http://stackoverflow.com/questions/8380468/compojure-regex-for-matching-a-trailing-slash

Modifies the request uri before calling the handler.
Removes a single trailing slash from the end of the uri if present.

Useful for handling optional trailing slashes until Compojure's route matching syntax supports regex.
Adapted from http://stackoverflow.com/questions/8380468/compojure-regex-for-matching-a-trailing-slash
sourceraw docstring

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

× close