Skip to content

Commit

Permalink
fix issue cgrand#30 (undesired laziness)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrand committed Feb 19, 2012
1 parent 210e595 commit 698343e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/cgrand/enlive_html.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 698343e

Please sign in to comment.