Skip to content

Commit

Permalink
Support numbers as hiccup-vector children (in ClojureScript); they'll…
Browse files Browse the repository at this point in the history
… be converted to strings and rendered as textNodes on the DOM.
  • Loading branch information
lynaghk committed Mar 29, 2012
1 parent 38cab4c commit d8cd0b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cljs/c2/dom.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
[x]
(match [x]
[(str :when string?)] str
[(n :when number?)] (str n)
[(m :when map?)] m ;;todo, actually check to make sure map has nsp, tag, attr, and children keys
;;todo, make explicit match here for attr map and clean up crazy Pinot logic below
[[tag & content]] (let [[_ tag id class] (re-matches re-tag (name tag))
Expand Down

0 comments on commit d8cd0b8

Please sign in to comment.