[ZPT] METAL expansion only when editing
Evan Simpson
evan@zope.com
Fri, 07 Sep 2001 14:16:30 -0400
Peter Bengtsson wrote:
> 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