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.

Reply via email to