Permalink
Browse files

allow nil data in templates

  • Loading branch information...
1 parent 2f17d6c commit e9e3c157984ee1b7c85b2f660f27c61fdaa3848e @aiba committed Mar 2, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/dommy/template.cljs
View
@@ -71,6 +71,9 @@
(do (doseq [child data] (->document-fragment result-frag child))
result-frag)
+ (nil? data)
+ result-frag
+
:else
(throw-unable-to-make-node data))))

0 comments on commit e9e3c15

Please sign in to comment.