(->hiccup document)
(->hiccup document local-components)
Processes components in the provided hiccup-data
and returns expanded Hiccup data. Aliased as expand-components
and with-components
.
hiccup-data
- The hiccup data to process which includes references to component element names.
component-config
(Optional) A map of component configuration. Components defined here will overwrite components registered with ->reg-component
for that function call only.
Processes components in the provided `hiccup-data` and returns expanded Hiccup data. Aliased as `expand-components` and `with-components`. - `hiccup-data` - The hiccup data to process which includes references to component element names. - `component-config` (Optional) A map of component configuration. Components defined here will overwrite components registered with `->reg-component` for that function call only.
(clear-components)
Alias of ->hiccup for use with Reagent/Re-frame
Alias of ->hiccup for use with Reagent/Re-frame
(reg-component element-name component-function)
Registers a component with the given element-name
(recommend to use a fully qualified keyword) and component-function
which should return hiccup.
element-name
- The element name that describes the component which can be used in Hiccup e.g ::ordered-list
, ::unordered-list
. Recommended to use fully qualified keywords to help organise components.
component-function
- A pure function that takes parameters and returns Hiccup data, for example:
Registers a component with the given `element-name`(recommend to use a fully qualified keyword) and `component-function` which should return hiccup. - `element-name` - The element name that describes the component which can be used in Hiccup e.g `::ordered-list`, `::unordered-list`. Recommended to use fully qualified keywords to help organise components. - `component-function` - A pure function that takes parameters and returns Hiccup data, for example:
Alias of ->hiccup for use with Reagent/Re-frame
Alias of ->hiccup for use with Reagent/Re-frame
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close