[Bese-devel] [patch] Add plain HTML generation

Clinton Ebadi clinton at unknownlamer.org
Tue Feb 3 21:14:59 UTC 2009


Aankhen <aankhen at gmail.com> writes:

> [Sent directly to Drew by mistake.]
>
> Hi Drew,
>
> On Fri, Jan 30, 2009 at 00:19, Drew Crampsie <drewc at tech.coop> wrote:
>> This is a good idea, but the execution (run time parameter checks) is
>> not at all right.. it should be done at compile time.
>>
>> I'll accept the patch if you want to rework it so that the logic is
>> all finished by run-time, but i can't possibly keep it like this ..
>> there is no need to do the work every time a page is rendered :).
>
> The reasoning behind it was that otherwise it becomes a nightmare to
> maintain two seperate versions of everything in the case where one
> Lisp image needs to generate both HTML and XHTML (or both HTML and any
> XML format, for that matter).  This might happen if you run an
> HTML-based site and an XHTML-based site in the same image; if you use
> content negotiation to serve up XHTML to capable browsers, HTML to
> others; if you use HTML everywhere on your site except in those cases
> where you need to use XHTML features (e.g. specific pages with
> embedded MathML or SVG); if you use YACLML to generate static HTML as
> well as static XHTML; or if, indeed, you have a completely HTML-based
> site and you generate any sort of XML output (RSS, Atom come to mind).

Why would you want to generate HTML4? The xhtml produced by yaclml is
valid html (note things like "<empty />" and whatnot). 

-- 
Lindsay (Carlton): should i eat more post its




More information about the bese-devel mailing list