Liking cljdoc? Tell your friends :D

cryogen-core.klipse


clojure-eval-classesclj

(clojure-eval-classes normalized-settings)

Takes settings and returns a set of the html classes that imply clojure eval.

Takes settings and returns a set of the html classes that imply clojure eval.
sourceraw docstring

clojure-eval?clj

(clojure-eval? normalized-settings html)

Takes settings and html and returns whether there is any clojure eval.

Takes settings and html and returns whether there is any clojure eval.
sourceraw docstring

clojure-selectorsclj

A set of selectors that imply clojure evaluation.

A set of selectors that imply clojure evaluation.
sourceraw docstring

code-block-classesclj

(code-block-classes html)

Takes a string of html and returns a sequence of all the classes on all code blocks.

Takes a string of html and returns a sequence of
all the classes on all code blocks.
sourceraw docstring

deep-mergeclj

(deep-merge & ms)

Like clojure.core/merge, but also merges nested maps under the same key.

Like clojure.core/merge, but also merges nested maps under the same key.
sourceraw docstring

defaultsclj

source

emitclj

(emit {:keys [settings js-src js css-base css-theme]})

Takes the final klipse config and returns the html to include on the bottom of the page.

Takes the final klipse config and returns the html to include on the bottom of the page.
sourceraw docstring

eval-classesclj

(eval-classes settings)

Takes the :settings map and returns all values that are css class selectors.

Takes the :settings map and returns all values that are css class selectors.
sourceraw docstring

include-cssclj

(include-css href)
source

include-jsclj

(include-js src)
source

infer-clojure-evalclj

(infer-clojure-eval config html)

Infers whether there's clojure eval and returns the config with the appropriate value assoc'd to :js. Returns the config untouched if :js is already specified.

Infers whether there's clojure eval and returns the config with the
appropriate value assoc'd to :js.
Returns the config untouched if :js is already specified.
sourceraw docstring

klipsifyclj

(klipsify {:keys [klipse/global klipse/local content-dom] :as post})

Klipsifies (or not) a post depending on the global and local klipse configs.

Klipsifies (or not) a post depending on the global and local klipse configs.
sourceraw docstring

klipsify?clj

(klipsify? global local)

Whether to klipsify a post based on the global and local configs.

Whether to klipsify a post based on the global and local configs.
sourceraw docstring

map-keysclj

(map-keys f m)

Applies f to each key in m

Applies f to each key in m
sourceraw docstring

map-or-nil?clj

source

merge-configsclj

(merge-configs global local)

Merges the defaults, global config and post config, transforms lisp-case keywords into snake_case/camelCase strings Returns nil if there's no post-config. A post-config with the value true counts as an empty map.

Merges the defaults, global config and post config,
transforms lisp-case keywords into snake_case/camelCase strings
Returns nil if there's no post-config.
A post-config with the value true counts as an empty map.
sourceraw docstring

normalize-settingsclj

(normalize-settings settings)

Transform the keys to the correct snake-case or camelCase strings.

Transform the keys to the correct snake-case or camelCase strings.
sourceraw docstring

tag-nohighlightclj

(tag-nohighlight html settings)

Takes html as an Enlive DOM and a coll of class-selectors and adds the class nohighlight to all code blocks that includes one of them so that the default code highlighter ignores them.

Takes html as an Enlive DOM and a coll of class-selectors and adds
the class `nohighlight` to all code blocks that includes one of them
so that the default code highlighter ignores them.
sourceraw docstring

update-existingclj

(update-existing m k f & args)

Like clojure.core/update, but returns m untouched if it doesn't contain k

Like clojure.core/update, but returns m untouched if it doesn't contain k
sourceraw docstring

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

× close