[ZPT] METAL: attributes as slots
Chris Withers
chrisw@nipltd.com
Tue, 11 Sep 2001 16:44:58 +0100
Hi,
How's this for a possible extension to METAL:
In master_template:
<html metal:define-marco="page">
<html>
<head>
<link rel="stylesheet" type="text/css" href="/stylesheet.css"
tal:replace="structure here/css_inline_or_link">
</head>
<body bgcolor="#ffffff" link="#000099" alink="#000099" vlink="#000099"
metal:define-attribute-slot="bgcolor"
metal:define-slot="body">
Dummy body
</body>
</html>
In a_page:
<html metal_use-macro="here/master_template/page">
<body metal:fill-attribute-slot="bgcolor string:#ccccff"
metal:fill-slot="page">
My real body
</body>
</html>
What do other people think?
cheers,
Chris