Utility functions for the clj-simple-form library.
Utility functions for the `clj-simple-form` library.
(html-fn component)Returns the HTML generation function corresponding to `component`.
### Example
(html-fn :wrapper)(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.
(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])(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.
(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)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |