[Zope-CMF] <metal> and <tal> tag in ZPT

Chris Withers chrisw@nipltd.com
Wed, 01 May 2002 11:20:29 +0100


Jon Edwards wrote:
> 
> Chris (or anyone), how do editors like Dreamweaver handle this - do they
> choke on unrecognised <tal> tags? In my quest for ZPT-Zen I'm trying to tidy
> up and improve my style, and as you say, this does seem much neater than
> lots of nested divs and spans.

Well, dreamweaver just ignores them, which is, I believe, what the HTML spec says to do
when you hti tags you know nothing about...

> On a slight tangent, when you do a "define" in ZPT does it work similarly to
> a <dtml-with> in DTML? i.e. puts the thing you have defined into the
> namespace until the closing tag? 

Yup

> So, if you have an expensive call, you're
> only doing it once, then using the results from the namespace, as long as
> you're within the "define" tags? (Does that question make any sense, it's
> hard to explain? ;-)

Yes, yes and yes ;-)

> ...I've been looking at the different ways of doing a Monthly Events
> Calendar display, trying to work out which is most efficient!

...well, we're going to check in a working CMFCalender, hopefully today, so maybe hold
fire :-)

cheers,

Chris