Liking cljdoc? Tell your friends :D

cryogen-core.markup


clear-registryclj

(clear-registry)

Reset the Markup registry.

Reset the Markup registry.
sourceraw docstring

Markupcljprotocol

A markup engine comprising a dir(ectory) containing markup files, a set of exts (extensions) for finding markup file names, and a render-fn that returns a fn with the signature [java.io.Reader config] -> String (HTML).

A markup engine comprising a dir(ectory) containing markup files,
a set of exts (extensions) for finding markup file names, and a render-fn that returns
a fn with the signature [java.io.Reader config] -> String (HTML).

dirclj

(dir this)

Returns the name of the directory under the content root that is expected to hold files in this markup format

Returns the name of the directory under the content root that is expected to hold files in this markup format

extsclj

(exts this)

Return the file extensions of files using this markup

Return the file extensions of files using this markup

render-fnclj

(render-fn this)

Returns (fn [^java.io.Reader rdr config] ..) producing the HTML string; config is the cryogen config map

Returns `(fn [^java.io.Reader rdr config] ..)` producing the HTML string; `config` is the cryogen config map
sourceraw docstring

markup-registryclj

source

markupsclj

(markups)

Return a vector of Markup implementations. This is the primary entry point for a client of this ns. This vector should be used to iterate over supported Markups.

Return a vector of Markup implementations. This is the primary entry point
for a client of this ns. This vector should be used to iterate over supported
Markups.
sourceraw docstring

register-markupclj

(register-markup mu)

Add a Markup implementation to the registry.

Add a Markup implementation to the registry.
sourceraw docstring

rewrite-hrefsclj

(rewrite-hrefs blog-prefix text)

Injects the blog prefix in front of any local links ex. <img src='/img/cryogen.png'/> becomes <img src='/blog/img/cryogen.png'/>

Injects the blog prefix in front of any local links
ex. <img src='/img/cryogen.png'/> becomes <img src='/blog/img/cryogen.png'/>
sourceraw docstring

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

× close