(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
(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
(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
(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.
(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
(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.
(sanitize input)
Takes input
and remove any non-valid characters
Takes `input` and remove any non-valid characters
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close