Web server frontend for browsing test results.
Web server frontend for browsing test results.
(app req)
(assert-file-in-scope! f)
Throws if the given file is outside our store directory.
Throws if the given file is outside our store directory.
Map of extensions to known content-types
Map of extensions to known content-types
(dir-cell f)
Renders a File (a directory) for a directory view.
Renders a File (a directory) for a directory view.
(dir-sort files)
Sort a collection of Files. If everything's an integer, sort numerically, else alphanumerically.
Sort a collection of Files. If everything's an integer, sort numerically, else alphanumerically.
(file-cell f)
Renders a File for a directory view.
Renders a File for a directory view.
(relative-path base target)
Relative path, as a Path.
Relative path, as a Path.
(serve! options)
Starts an http server with the given httpkit options.
Starts an http server with the given httpkit options.
(test-header)
(test-row t)
Turns a test map into a table row.
Turns a test map into a table row.
(url t & args)
Takes a test and filename components; returns a URL for that file.
Takes a test and filename components; returns a URL for that file.
(url-encode-path-components x)
URL encodes individual components of a path, leaving / as / instead of encoded.
URL encodes *individual components* of a path, leaving / as / instead of encoded.
(zip req dir)
Serves a directory as a zip file. Strips .zip off the extension.
Serves a directory as a zip file. Strips .zip off the extension.
(zip-path! zipper base file)
Writes a path to a zipoutputstream
Writes a path to a zipoutputstream
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close