Hi !

On Sat, Jul 11, 2009 at 7:31 PM, Jarkko Oranen <chous...@gmail.com> wrote:

> On Jul 11, 6:01 pm, Robert Campbell <rrc...@gmail.com> wrote:
> > Hey guys,
> >
> > I'm just curious why Christophe chose to return seq instead of a str
> > for Enlive for his template functions.
>
> Most likely Enlive generates each of those fragments separately;
> Forcing them into a single string at the end would wasteful in case
> the user intends to write the output into a stream (which can be done
> a fragment at a time.) Thus, leaving the choice to the user seems like
> a good decision.



Yes you are spot on: most of the time the resulting html is wrote into a
stream (disk/network/pipe).
This is also why I modified Ring to accept a seq of string as the body of a
http response.

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