[Zope] - XML-style DTML code

Phil Harris pharris@forfree.at
Fri, 29 Jan 1999 14:11:45 -0000


Hi,

Trying to apply this patch with the command:

patch DT_HTML.py DT.HTML.py.diff

It ain't working, am I missing something or what (probably)

TIA

Phil
wmlph@d032.ml.uwcm.ac.uk

----- Original Message ----- 
From: Christopher G. Petrilli <petrilli@amber.org>
To: <zope@zope.org>
Sent: Thursday, January 28, 1999 11:44 PM
Subject: [Zope] - XML-style DTML code


>Gang,
>
>In the attitude of "put your code where your mouth is," attached is a
>patch to DT_HTML.py in the DocumentTemplates class, which provides the
>ability to use XML-style formats instead of just the DTML formats...
>now, this isn't an earth shattering re-work, honestlyi t's a few lines
>of code, and it probably will have some minor impact on performance, and
>might even have a bug---but I've run it through the test stuff, and also
>played iwth it a bit behind Zope, so it shouldn't blow anything up!
>
>The new syntax is simply:
>
> <?ztml #var arg ?>
>
>Note that I've chosen ztml, for Z Template Markup Language (yeah yeah),
>and it's not "officially" sanctioned, but there you have it.
>Additionally, I've not really decided what should be done with the '#',
>and whether it should stay... it's a minor change (I think) to get rid
>of it, but you never know... I kinda like it, but I kinda don't! ;-)
>
>Also, the space at the end is option before the '?>', whereas the one
>after '<?ztml' is REQUIRED by the XML spec... 
>
>For those interested, '<?' is the PI (Processing Instructions) notation
>for XML.
>
>Chris
>-- 
>| Christopher Petrilli
>| petrilli@amber.org
>