When should one use with-html-output and when should one use with-html-output-to-string?
http://weitz.de/cl-who/#with-html-output-to-string
On Wed, Dec 16, 2009 at 1:06 PM, Phil Marneweck zaries@global.co.za wrote:
When should one use with-html-output and when should one use with-html-output-to-string?
tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel
Thanx for the link, I have looked at that a couple of times but until now I have not really put my mind to the issue.
What I am actually trying to ask is whether the follwoing statement would be true:
In general one should use with-html-output and reserve with-html-output-to-string for those times that you want to intentionally "delay" the actual rendering of the html generated untill needed.
In other words should one
On Wed, 2009-12-16 at 13:22 +0100, Olaf Ruppert wrote:
http://weitz.de/cl-who/#with-html-output-to-string
On Wed, Dec 16, 2009 at 1:06 PM, Phil Marneweck zaries@global.co.za wrote:
When should one use with-html-output and when should one use with-html-output-to-string?
tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel
tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel
On Wed, Dec 16, 2009 at 2:44 PM, Phil Marneweck zaries@global.co.za wrote:
Thanx for the link, I have looked at that a couple of times but until now I have not really put my mind to the issue.
What I am actually trying to ask is whether the follwoing statement would be true:
In general one should use with-html-output and reserve with-html-output-to-string for those times that you want to intentionally "delay" the actual rendering of the html generated untill needed.
Both macros do essentially the same thing, they both write to a stream. W-H-O writes to a stream you specify, W-H-O-T-S writes to a string stream and returns the string it generated. Or in other words, W-H-O-T-S is just a convenience wrapper around W-H-O. See the source code for its definition.
As was already said, this should really be discussed on the CL-WHO mailing list.
Cheers, Edi.