On Mon, Jul 13, 2009 at 11:26 AM, Robert Campbell <rrc...@gmail.com> wrote:

>
> I need the _exact_ functionality of the "sniptest" function (which
> appears to have been removed) in production code.


sniptest lives now in
http://github.com/cgrand/enlive/blob/master/test/net/cgrand/enlive_html/test.clj
I may have been over-zealous when I moved test-related functions into
separate files.


> I am trying to
> create a decorator in compojure that will accept a response body and
> modify the styling in various ways. I can just use the old sniptest
> definition:
>
> (apply str (emit* ((transformation [:h1] (content "hey")) (html-src
> (:body response)))))
>
> but is there a better way? I'm also not sure what emit* does exactly.


emit* serialize one or several trees to a seq of strings.

Christophe

-- 
Professional: http://cgrand.net/ (fr)
On Clojure: http://clj-me.blogspot.com/ (en)

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to