Skip to content

arohner/om-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

om-html

hiccup/sablono for Om Next.

Now that Om Next supports server-side rendering, this gives client+server rendering for free.

Usage

(: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.
  • All the standard hiccup/sablono syntax is supported: [:div#foo.bar], implicit divs: [:.foo].

Server-Side Rendering