(create-element! attr)
Create an element in the DOM with an optional data-herb attribute
Create an element in the DOM with an optional data-herb attribute
(create-style identifier new data-str)
Create a style element in head if identifier is not already present Attach a data attr with namespace and call update-style with new element
Create a style element in head if identifier is not already present Attach a data attr with namespace and call update-style with new element
(inject-obj! sym dispatch & obj)
Inject collection of style objects in a common element, used by passing a dispatch in the form of :keyframes or :global
Inject collection of style objects in a common element, used by passing a dispatch in the form of :keyframes or :global
(inject-style! identifier new data-str)
Main interface to runtime. Takes an identifier, new garden style data structure
and a fully qualified name. Check if identifier exist in DOM already, and if it
does, compare new
with current
to make sure garden is not called to create
the same style string again
Main interface to runtime. Takes an identifier, new garden style data structure and a fully qualified name. Check if identifier exist in DOM already, and if it does, compare `new` with `current` to make sure garden is not called to create the same style string again
(update-style! identifier new)
(update-style! identifier element new)
Create css string and update DOM
Create css string and update DOM
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close