Which version of hiccup? there was a bug discussed in compojure mailing list couple of days ago, where hiccup pre compilation fails when there are vars inside maps.
http://groups.google.com/group/compojure/browse_thread/thread/d512a04a08aaa64f# 0.2.2 fixes this issue. -- Nurullah Akkaya http://nakkaya.com On Tue, Apr 13, 2010 at 5:52 AM, Micah Martin <micahmar...@gmail.com> wrote: > Hey All, > > Does anyone know why the first expression below works but the second doesn't? > What's the right way to do this? > > user=> (use 'hiccup.core) > nil > user=> (html (for [image ["image017.jpg" "image021.jpg"]] [:img image])) > "<img>image017.jpg</img><img>image021.jpg</img>" > user=> (html (for [image ["image017.jpg" "image021.jpg"]] [:img {:src > image}])) > java.lang.RuntimeException: java.lang.RuntimeException: > java.lang.InstantiationException: > user$eval__209$iter__211__215$fn__216$fn__218$eval__220 (NO_SOURCE_FILE:3) > (NO_SOURCE_FILE:3) > > Micah > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > > To unsubscribe, reply using "remove me" as the subject. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en