Hi all. I'm attempting to use the new dtml syntax convention, documented in Pamela's fine Document Template Markup Language reference. The server complains if I use <!--#dtml-var xxx--> syntax, but works okay for <!--#var xxx-->. I assume the possible problem might be: 1. The new syntax is not supported in the latest stable Zope 2.1.2 release. 2. My server is loading an older version of DocumentTemplate.HTMLFile. (I've already checked this.) The individual Zope components used to be available for separate download, but I can't find them anymore. If downloading a more recent DocumentTemplate from a beta version will allow me to play with the new dtml syntax, I'll be happy to try that. Thanks. Jeff Bauer Rubicon Research
Hi, ----- Original Message ----- From: "Jeff Bauer" <jbauer@rubic.com> To: <zope@zope.org> Sent: Sunday, January 16, 2000 3:16 PM Subject: [Zope] new dtml syntax
I'm attempting to use the new dtml syntax convention, documented in Pamela's fine Document Template Markup Language reference.
The server complains if I use <!--#dtml-var xxx--> syntax, but works okay for <!--#var xxx-->.
Actually, the new syntax looks more like HTML tags and less like comments: <dtml-var xxx> is equivalent to <!--#var xxx--> Kevin
Jeff Bauer wrote:
Hi all.
I'm attempting to use the new dtml syntax convention, documented in Pamela's fine Document Template Markup Language reference.
The server complains if I use <!--#dtml-var xxx--> syntax, but works okay for <!--#var xxx-->.
I assume the possible problem might be:
1. The new syntax is not supported in the latest stable Zope 2.1.2 release.
2. My server is loading an older version of DocumentTemplate.HTMLFile. (I've already checked this.)
3. You may be misunderstanding the exact nature of the new syntax. :) Instead of: <!--#var xxx--> it is now: <dtml-var xxx> Does that solve your problem? Regards, Martijn
Since others have already pointed out the correct syntax, I'll just add a side note: Some HTML editors (cough Dream cough weaver) which merrily ignore the contents of <!--#var --> style tags will mangle tags of the form <dtml-var "...">. The solution is to write <dtml-var expr="..."> instead. While you're experimenting with the new syntax, be sure to try out &dtml-foo; as well. It's great for embedding values in tag attributes. Cheers, Evan @ 4-am
participants (5)
-
Evan Simpson -
Jeff Bauer -
Joe Grace -
Kevin Dangoor -
Martijn Faassen