Template Attribute Language#METAL
The Macro Expansion Template Attribute Language (METAL, English for macro language for attribute-based templates processing ) allows the definition of macros to reuse code in other templates. Usually it is used in connection with the template language attributes, but is not limited thereto; see there.
The METAL was developed within the web application server Zope; see also Zope Page Templates.
Overview
METAL adds Template Attribute Language (TAL ) by the possibility to reuse code. For this purpose, macros can be defined, which in turn may have so-called slots; , when using a macro, via the evaluation of TAL variables addition, the contents of the slot will be overwritten.
When XML documents are to be generated, it is important to write the XML namespace ( xmlns: tal = " http://xml.zope.org/namespaces/metal ").
Attributes
The following attributes are recognized, where the prefix in the normal case: must be prefixed with "metal":
Use
TAL / TALES / METAL be used by the following projects:
- Zope ( Web Application )
- Roundup ( issue tracker )