Permalink
Browse files

fix issue #30 (undesired laziness)

  • Loading branch information...
1 parent 210e595 commit 698343e456287c5f744bf6170426d33ccd6d6e3a @cgrand cgrand committed Feb 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/net/cgrand/enlive_html.clj
@@ -563,7 +563,7 @@
(defmacro snippet* [nodes args & forms]
`(let [nodes# (map annotate ~nodes)]
(fn ~args
- (flatmap (transformation ~@forms) nodes#))))
+ (doall (flatmap (transformation ~@forms) nodes#)))))
(defmacro snippet
"A snippet is a function that returns a seq of nodes."

0 comments on commit 698343e

Please sign in to comment.