(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.
(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.
A set of selectors that imply clojure evaluation.
A set of selectors that imply clojure evaluation.
(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.
(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.
(emit config html)
Takes the :klipse config from config.edn and the :klipse config from the current post, and returns the html to include on the bottom of the page.
Takes the :klipse config from config.edn and the :klipse config from the current post, and returns the html to include on the bottom of the page.
(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.
(filter-html-elems pred html-elems)
Recursively walks a sequence of enlive-style html elements depth first and returns a flat sequence of the elements where (pred elem)
Recursively walks a sequence of enlive-style html elements depth first and returns a flat sequence of the elements where (pred elem)
(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.
(merge-configs global-config post-config)
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.
(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.
(tag-nohighlight html settings)
Takes html as a string and a coll of class-selectors and adds nohighlight to all code blocks that includes one of them.
Takes html as a string and a coll of class-selectors and adds nohighlight to all code blocks that includes one of them.
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close