Clojurescript dom generation as per hiccup
Clojure
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/piccup
.gitignore
README.md
project.clj

README.md

piccup

Hiccup for clojurescript.

Extracted from https://github.com/ibdknox/pinot

Motivation:

pinot has a dependency on goog.dom.query which is not part of the std clojurescript closure library.

This lib is only for hiccup style rendering. No other dom utils.

Usage

(ns your.ns
  (:require [piccup.html :as ph]))

(def my-dom-element     (first (ph/html [:div "hi"])))
(def my-dom-element-seq (ph/html [:div "hi"] [:div "there"]))

JAR

  • Clojars: [piccup "1.0.0"] - old property access syntax
  • Clojars: [piccup "1.1.0"] - new property access syntax

Compilation

to include this lib in your cljs builds,

  • git clone to some_dir

  • in you project, make a dir cljs_checkouts

  • link some_dir into cljs_checkouts

Use this version of cljs-watch to build your project:

License

Copyright (C) 2011 Chris Granger

Copyright (C) 2011 Dave Sann (just a small bit)

Distributed under the Eclipse Public License, the same as Clojure.