(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 {: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.
(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.
(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.
(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.
(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.
(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.
(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 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.
(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