Liking cljdoc? Tell your friends :D

clj-simple-form.util

Utility functions for the clj-simple-form library.

Utility functions for the `clj-simple-form` library.
raw docstring

html-fnclj

(html-fn component)

Returns the HTML generation function corresponding to component.

Example

(html-fn :wrapper)
Returns the HTML generation function corresponding to `component`.

### Example

    (html-fn :wrapper)
raw docstring

key-value-pairclj

(key-value-pair option)

Returns a key-value pair based on the option. If the option is a scalar value, returns that value as both the key and value.

Examples

(key-value-pair "Finnish")
(key-value-pair ["fi" "Finnish])
Returns a key-value pair based on the option. If the option is a scalar
value, returns that value as both the key and value.

### Examples

    (key-value-pair "Finnish")
    (key-value-pair ["fi" "Finnish])
raw docstring

set-html-fns!clj

(set-html-fns! fmap-or-ns)

Overrides some or all of the functions used for generating HTML. If passed a namespace, will set all functions in the namespace as HTML functions based on their names.

Examples

(set-html-fns! {:hint mylib.html/hint})
(set-html-fns! 'mylib.html)
Overrides some or all of the functions used for generating HTML. If passed
a namespace, will set all functions in the namespace as HTML functions based
on their names.

### Examples

    (set-html-fns! {:hint mylib.html/hint})
    (set-html-fns! 'mylib.html)
raw docstring

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

× close