uix.compiler.alpha
Server-side rendering on JVM. Based on https://github.com/tonsky/rum/blob/gh-pages/src/rum/server_render.clj
*select-value*
dynamic
add-transform-fn
(add-transform-fn f)
escape-html
(escape-html s)
get-value
(get-value attrs)
HtmlRenderer
protocol
members
-render-html
(-render-html this *state sb)
Turn a Clojure data type into a string of HTML with react ids.
IStringBuilder
protocol
members
append!
(append! sb s0)
(append! sb s0 s1)
(append! sb s0 s1 s2)
(append! sb s0 s1 s2 s3)
(append! sb s0 s1 s2 s3 s4)
make-static-builder
(make-static-builder)
make-stream-builder
(make-stream-builder on-chunk)
normalize-attr-key
(normalize-attr-key key)
normalize-css-key
(normalize-css-key k)
normalize-css-value
(normalize-css-value key value)
normalize-element
(normalize-element [first second & rest])
normalized-attrs
parse-selector
(parse-selector s)
render-attr!
(render-attr! tag key value sb)
render-attrs!
(render-attrs! tag attrs sb)
render-class!
(render-class! sb first? class)
render-classes!
(render-classes! classes sb)
render-component!
(render-component! [f & args] *state sb)
render-content!
(render-content! tag attrs children *state sb)
render-element!
(render-element! element *state sb)
Render an element vector as a HTML element.
render-fragment!
(render-fragment! [tag attrs & children] *state sb)
render-html-element!
(render-html-element! [tag :as element] *state sb)
render-inner-html!
(render-inner-html! attrs children sb)
render-interop!
(render-interop! element)
render-portal!
(render-portal! element)
render-style!
(render-style! map sb)
render-style-kv!
(render-style-kv! sb empty? k v)
render-suspense!
(render-suspense! element)
render-textarea-value!
(render-textarea-value! tag attrs sb)
render-to-static-markup
(render-to-static-markup src)
render-to-static-stream
(render-to-static-stream src {:keys [on-chunk]})
render-to-stream
(render-to-stream src {:keys [on-chunk]})
render-to-string
(render-to-string src)
ToString
protocol
members
to-str
(to-str x)
Convert a value into a string.