[Bese-devel] [patch] Add plain HTML generation
Drew Crampsie
drewc at tech.coop
Thu Jan 29 18:49:24 UTC 2009
Hey Aanknhen,
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 :).
Cheers,
drewc
2009/1/10 Aankhen <aankhen at gmail.com>:
> Hi,
>
> I always use straight HTML 4.01 rather than XHTML 1.0 or 1.1, so I
> patched yaclml to take this into account by adding two variables:
> *YACLML-MODE* and *YACLML-ALWAYS-QUOTE-HTML-ATTRIBUTE-VALUES-P* (both
> exported from the package).
>
> *YACLML-MODE* may be :HTML or :XML. The default is :XML, which means
> that existing users will see no difference.
>
> *YACLML-ALWAYS-QUOTE-HTML-ATTRIBUTE-VALUES-P* is set to NIL by
> default. If this is NIL, values for which SIMPLE-ATTRIBUTE-VALUE-P
> returns T will be left unquoted.
>
> The logic for deciding whether to emit SGML or XML is emitted as part
> of the macros, so the runtime value of *YACLML-MODE* determines which
> will be emitted, rather than the compile-time value as with CL-WHO.
> One downside I can see is that this means extra code to execute at
> runtime.
>
> Hope this is useful to someone apart from me. :-)
> Aankhen
>
> _______________________________________________
> bese-devel mailing list
> bese-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/bese-devel
>
>
More information about the bese-devel
mailing list