Liking cljdoc? Tell your friends :D

hiccup-components.core


->hiccupclj/s

(->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.
raw docstring

clear-componentsclj/s

(clear-components)

expand-componentsclj/s

Alias of ->hiccup for use with Reagent/Re-frame

Alias of ->hiccup for use with Reagent/Re-frame
raw docstring

global-componentsclj/s


reg-componentclj/s

(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:
raw docstring

with-componentsclj/s

Alias of ->hiccup for use with Reagent/Re-frame

Alias of ->hiccup for use with Reagent/Re-frame
raw docstring

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

× close