<div>PS-HTML is indeed what I wanted, or almost (see below). I'm glad this</div><div>discussion came up. By the way, the documentation page you linked</div><div>to, which I hadn't looked at in a long time, is very nice.</div>

<div><br></div><div>I pushed two small patches to the repository to make PS-HTML do </div><div>what we need:</div><div><br></div><div>1. Use the string-buffer-join technique for concatenating HTML at</div><div>runtime, since the + operator is notoriously slow when the strings</div>

<div>aren't small, at least in older browsers.</div><div><br></div><div>2. Expanded the amount of compile-time constant folding of strings</div><div>that PS-HTML is able to do. For example, if you give it a character,</div>

<div>or an expression that macroexpands to a string, these are now joined</div><div>in with the string literals PS-HTML emits. Apart from reducing the</div><div>amount of joining needed at runtime, this makes the emitted HTML</div>

<div>more readable.</div><div><br></div><div>If either of these strikes anyone as inappropriate, speak up so we</div><div>can figure it out together.</div><div><br></div><div>I'm glad we had this discussion. I did not want to write yet another</div>

<div>sexp-html library.</div><div><br></div><div>Daniel</div><div><br></div><div><br></div><br><div class="gmail_quote">On Sun, Jun 20, 2010 at 1:41 PM, Daniel Gackle <span dir="ltr"><<a href="mailto:danielgackle@gmail.com" target="_blank">danielgackle@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><Or am I being dumb and you're talking about something else? ><div><br></div></div><div>Not at all, I forgot about it. I think it didn't do what I wanted way</div><div>back when, but I'll check it out again and report back. Thanks for</div>



<div>reminding me.</div><div><br></div><div>Dan<div><div></div><div><br><br><div class="gmail_quote">On Sun, Jun 20, 2010 at 11:56 AM, Vladimir Sedach <span dir="ltr"><<a href="mailto:vsedach@gmail.com" target="_blank">vsedach@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Parenscript has always had an s-expr HTML markup generator<br>
(<a href="http://common-lisp.net/project/parenscript/reference.html#ssection-html-gen" target="_blank">http://common-lisp.net/project/parenscript/reference.html#ssection-html-gen</a>).<br>
Or am I being dumb and you're talking about something else?<br>
<br>
Vladimir<br>
<br>
<br>
2010/6/20 Daniel Gackle <<a href="mailto:danielgackle@gmail.com" target="_blank">danielgackle@gmail.com</a>>:<br>
<div><div></div><div>> If I understand correctly, your problem is that you want to express<br>
> HTML in sexprs à la CL-WHO but with inlined PS expressions<br>
> to dynamically change what gets emitted. Since you want PS<br>
> expressions, you must be generating this HTML at runtime in<br>
> the browser. Is that right?<br>
> It so happens that I got frustrated with doing the same thing<br>
> yesterday and wrote a macro to allow me to inline HTML inside<br>
> PS in this way. Before I post it, though, I want to make sure it<br>
> at least covers all our existing cases.<br>
> Can other people pipe up and explain what they do to generate<br>
> HTML from PS? Is there currently a standard solution better than<br>
> "<div>"+blah+"</div>"?<br>
> Daniel<br>
><br>
> 2010/6/20 Haris Bogdanović <<a href="mailto:fbogdanovic@xnet.hr" target="_blank">fbogdanovic@xnet.hr</a>><br>
>><br>
>> Hi.<br>
>><br>
>> How to set bgcolor within td tag (cl-who):<br>
>><br>
>> (:td (ps (setf bgcolor "blue")))<br>
>><br>
>> or something like this to get<br>
>><br>
>> this.bgcolor="blue"      ?<br>
>><br>
>> Thanks<br>
>> _______________________________________________<br>
>> parenscript-devel mailing list<br>
>> <a href="mailto:parenscript-devel@common-lisp.net" target="_blank">parenscript-devel@common-lisp.net</a><br>
>> <a href="http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel" target="_blank">http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> parenscript-devel mailing list<br>
> <a href="mailto:parenscript-devel@common-lisp.net" target="_blank">parenscript-devel@common-lisp.net</a><br>
> <a href="http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel" target="_blank">http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel</a><br>
><br>
><br>
<br>
_______________________________________________<br>
parenscript-devel mailing list<br>
<a href="mailto:parenscript-devel@common-lisp.net" target="_blank">parenscript-devel@common-lisp.net</a><br>
<a href="http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel" target="_blank">http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel</a><br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br>