Singultus is a fork of crate which is ClojureScript implementation of the awesome Hiccup html templating library.
(ns myapp
(:use-macros [singultus.def-macros :only [defpartial]])
(:require [singultus.core :as singultus]))
(singultus/html [:p.woot {:id "blah"} "Hey!"])
=> <p class="woot" id="blah">Hey!</p>
(defpartial header []
[:header
[:h1 "My app!"]])
(header)
=> <header><h1>My app!</h1></header>
(singultus/html [:div (crate/raw "<span>foo</span><strong>bar</strong>")])
=> <div><span>foo</span><strong>bar</strong></div>
Copyright (C) 2011 Chris Granger
Copyright (C) 2020 Pratik Karki
Distributed under the Eclipse Public License, the same as Clojure.
Can you improve this documentation? These fine people already did:
Pratik Karki, Chris Granger, Brian Maddy & Evan MezeskeEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close