Leslie P. Polzer wrote:

>> Sometimes you want to pre-render things like links to images and pass a
>> pre-rendered string to a function that assembles a larger chunk of
>> HTML. As it is now, calling functions that use with-html will render
>> HTML onto the output stream.
>>
>> As a counter-example, I'm writing code in Clojure where every rendering
>> function returns a string and those strings are accumulated into the
>> final output.
>
> Sounds like you want YACLML instead of CL-WHO:
>
>    
> http://www.3ofcoins.net/2009/02/07/yaclml-in-pictures-part-i-html-generation/

Since I've been personally called to the discussion (btw, I still need 
to sit down and write the second and third part...), yaclml still does 
not work this way: all is rendered to YACLML:*YACLML-STREAM*.  Maybe the 
core-server guys' DOM stuff would be the thing, but as I remember 
discussing this, splitting DOM as separate library would be nontrivial.

But pre-rendering with (WITH-OUTPUT-TO-STRING (*WEBLOCKS-OUTPUT-STREAM*) 
...) should be a good workaround - at least I do it this way with Yaclml.

Regards,
Maciej.

-- 
Maciej Pasternacki -><- http://www.pasternacki.net/ -><- 
http://www.3ofcoins.net/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"weblocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to