Liking cljdoc? Tell your friends :D

herb.impl


compose-selectorclj/s

(compose-selector n k)
source

convert-mediaclj/s

(convert-media media)
source

convert-pseudoclj/s

(convert-pseudo pseudos)
source

convert-supportsclj/s

(convert-supports supports)
source

convert-vendorsclj/s

(convert-vendors vendors)
source

create-data-stringclj/s

(create-data-string n k)

Create a fully qualified name string for use in the data-herb attr

Create a fully qualified name string for use in the data-herb attr
sourceraw docstring

extract-metaclj/s

(extract-meta styles meta-type)

Takes a group of resolved styles and a meta type. Pull out each meta obj and merge to prevent duplicates, finally convert to garden acceptable input and return

Takes a group of resolved styles and a meta type. Pull out each meta obj and
merge to prevent duplicates, finally convert to garden acceptable input and
return
sourceraw docstring

extract-stylesclj/s

(extract-styles style-fns)

Extract all the :extend meta, ensuring what we walk the entire tree, passing each extend vector of style-fns to resolve-style-fns for resolution. Takes a collection of style-fns and a result collection that is returned with the resolved styles

Extract all the `:extend` meta, ensuring what we walk the entire tree, passing
each extend vector of style-fns to `resolve-style-fns` for resolution.
Takes a collection of `style-fns` and a result collection that is returned
with the resolved styles
sourceraw docstring

get-nameclj/s

(get-name style-fn ns-name style-data)
source

prepare-dataclj/s

(prepare-data resolved-styles)

Prepare resolved-styles so they can be passed to garden.core/css Merge the styles to remove duplicate entries and ensuring precedence. Extract all meta and return a final vector of styles including meta.

Prepare `resolved-styles` so they can be passed to `garden.core/css` Merge
the styles to remove duplicate entries and ensuring precedence. Extract all
meta and return a final vector of styles including meta.
sourceraw docstring

process-meta-xformclj/s

(process-meta-xform meta-type)

Return a transducer that pulls out a given meta type from a sequence and filter out nil values

Return a transducer that pulls out a given meta type from a sequence and filter
out nil values
sourceraw docstring

resolve-style-fnsclj/s

(resolve-style-fns style-fns)

Calls each function provided in a collection of style-fns. Input can take multiple forms depending on how it got called from the consumer side either using the macro directly or via extend meta data. Takes a collection of style-fns and a collection result that is returned with the resolved style maps.

Calls each function provided in a collection of style-fns. Input can take
multiple forms depending on how it got called from the consumer side either
using the macro directly or via extend meta data. Takes a collection of
`style-fns` and a collection `result` that is returned with the resolved style
maps.
sourceraw docstring

sanitizeclj/s

(sanitize input)

Takes input and remove any non-valid characters

Takes `input` and remove any non-valid characters
sourceraw docstring

with-style!clj/s

(with-style! {:keys [id? style?]} fn-name ns-name style-fn & args)

Entry point for macros. Takes an opt map as first argument, and currently only supports :id true which appends an id identifier instead of a class to the DOM

Entry point for macros.
Takes an `opt` map as first argument, and currently only supports `:id true`
which appends an id identifier instead of a class to the DOM
sourceraw docstring

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

× close