Nice enhancement!
On Thu, Apr 23, 2009 at 6:43 PM, Christophe Grand wrote:
>
> I updated the tutorial to reflect a new behavior: enlive now precomputes
> html output for untouched or partly untouched elements.
>
> ((template (java.io.StringReader. "untouched element class=foo>won't last") []
>
I updated the tutorial to reflect a new behavior: enlive now precomputes
html output for untouched or partly untouched elements.
((template (java.io.StringReader. "untouched elementwon't last") []
[[:div last-child]] (content "new content")))
used to return:
("<" "html" ">" "<" "body" ">" "<
Christophe Grand a écrit :
> Hi Adrian!
>
> Thanks for this tutorial, I put it on the wiki
> http://wiki.github.com/cgrand/enlive/getting-started (I fixed two typos:
> a missing paren and an extraneous colon and I simplified to-li).
And I removed the part talking about right since I already mer
Hi Adrian!
Thanks for this tutorial, I put it on the wiki
http://wiki.github.com/cgrand/enlive/getting-started (I fixed two typos:
a missing paren and an extraneous colon and I simplified to-li).
Speaking of to-li, (to-li ["one" "two"]) can be written (map (wrap :li)
["one" "two"]).
While tr
I've uploaded a file
http://groups.google.co.za/group/clojure/web/enlive-tut1.txt?hl=en
which is a basic tutorial on getting started with Enlive (the html
transformation library).
Christophe, this is intended as a contribution to the Enlive project,
so you're welcome to use it as part of the Enli