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
"Christopher G. Petrilli" wrote:
The new syntax is simply:
<?ztml #var arg ?> <SNIP> 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! ;-)
I like this, it looks cleaner, and the hashmark should probably stay, it helps differentiate the dynamic stuff from the html markup. The code now looks less like ASP. Michael.
"Christopher G. Petrilli" wrote:
The new syntax is simply:
<?ztml #var arg ?> <SNIP> 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! ;-)
Michael Bernstein wrote:
I like this, it looks cleaner, and the hashmark should probably stay, it helps differentiate the dynamic stuff from the html markup. The code now looks less like ASP.
well, i'm not syntax & standards guru, but using no hashmark seems to be cleaner to me. we already have "<?" syntax to differentiate from html and maybe sometime in the future we'll have syntax colorizing editor. bye Deckard
Yeah. In an XML context, the '#' hash mark appears gratuitous. Even if it provides a visual clue to DTML-ers, it's really redundant. -Jeff Vladimir Tomasovic wrote:
"Christopher G. Petrilli" wrote:
The new syntax is simply:
<?ztml #var arg ?>
<SNIP>
well, i'm not syntax & standards guru, but using no hashmark seems to be cleaner to me. we already have "<?" syntax to differentiate from html and maybe sometime in the future we'll have syntax colorizing editor.
bye Deckard
From: Vladimir Tomasovic <Vladimir.Tomasovic@kiss.sk>
well, i'm not syntax & standards guru, but using no hashmark seems to be cleaner to me. we already have "<?" syntax to differentiate from html and maybe sometime in the future we'll have syntax colorizing editor.
I agree. At least make the "#" optional. Thanks Bruce -- The $70 Billion US "budget surplus" hardly offsets our $5 Trillion national debt. The debt increased by $133 Billion in the same year we found a "surplus". More debt is predicted for 1999. See www.concordcoalition.org . Bruce Perens K6BP bruce@pixar.com 510-620-3502 NCI-1001
participants (5)
-
bruce@pixar.com -
Christopher G. Petrilli -
Jeff Bauer -
Michael Bernstein -
Vladimir Tomasovic