Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.

davesann/piccup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Clojurescript dom generation as per hiccup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published