[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Advanced Page Templates
webmaster@zope.org
webmaster@zope.org
Thu, 03 Oct 2002 20:19:58 -0400
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/AdvZPT.stx#1-0
---------------
In Chapter 5, "Using Zope Page Templates" you learned the basics
about Page Templates. In this chapter you'll learn about advanced
techniques including new types of expressions and macros.
% Anonymous User - Apr. 30, 2002 5:14 pm:
Please add examples of using elements from the metal and tal namespaces.
The following quote from the CMF mailing list explains the definition of
<metal:block...>.
> In the page template portal_skins/zpt_generic/main_template the following
> statement seems to be an error.
>
> <metal:block define-slot="base" />
>
> I found no reference to a <metal> in the current METAL or TAL specification.
The element is actually in the METAL namespace; that is, its name
really is '<metal:block>', not '<metal>'. It exists for the relatively
rare case when macro expansion needs to be able to insert a slot into
the middle of another element, and can't be attached to any other
(legal) element (for instance, '<div>' is illegal inside the '<head>'
element).
% Anonymous User - Oct. 3, 2002 8:19 pm:
Please include examples of templates working with
External Methods and Python Scripts. Include an example
External Method and Python Script for each and how to
pass values in both directions.