Now that Om Next supports server-side rendering, this gives client+server rendering for free.
(:require [om-html.html :as html])
(defui Page
Object
(render [this]
(html/html
[:h1 "Hello World"])))
(html/html)
is a function that returns calls to om.dom/<element>
. It works in both .clj
and .cljs
.[:div#foo.bar]
, implicit divs: [:.foo]
.1.0.0-alpha45
or higher).Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close