[ZPT] METAL expansion only when editing

Peter Bengtsson mail@peterbe.com
Mon, 10 Sep 2001 09:23:03 +0200


Ok then.

What is the difference between using macros or tal:replace when you're
always having the little "Expand while editing" thing off?

What is most precious to me is processing speed in this case. We must avoid
all luxiurios editing options to gain time.
Besides, at run time, these templates will not have to worry too much about
where they are and how they are included. Another stringent entity does
that.

Do I sound silly?






> > I have a site; with lots of little pieces of PageTemplates. Some just
> > contain a little HTML table on 10 lines.
>
>
> >       <div tal:replace="here/thistable"/>
> >       <div tal:replace="here/thattable"/>
> >       <div tal:replace="here/thistext"/>
>
>
> Are these the little tables in PageTemplates?  Why not use macros
> instead of tal:replace?  Macros were invented specifically so that you
> *wouldn't* need to have a zillion little HTML fragments with no page
> context.
>
> >  1) I want to have the cool functionality of METAL when editing so that
I
> > can have a header and footer around little tables in Dreamweaver.
> >
> >  2) When rendered as a webpage I want no METAL expansion.
>
> Sorry, I don't understand.
>
> Cheers,
>
> Evan @ Zope
>