[ZPT] headers and such
Michal Kurowski
mkur@poczta.gazeta.pl
Mon, 14 Oct 2002 02:00:26 +0200
Hi,
I have some trouble dealing with proper header generation on my
(fully) zpt site. I'd like to have a single general macro with a
couple of slots for filling with additional data.
Something like this seems rather troublesome to make it work:
<metal:block metal:define-macro="header">
<head>
<title tal:content="here/title_or_id">Page Title</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<metal:block metal:define-slot="additional-data"></metal:block>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
</metal:block>
..and:
<div metal:use-macro="root/meta/frame/macros/header">
<span metal:fill-slot="additional-data">
<span tal:define="dummy
python:request.RESPONSE.addHeader('Cache-Control', 'no-cache')"></span>
</span>
</div>
I remember a long discussion on exactly that subject but it still seems
there no proper way, just some "fighting clubs" (pragmatic
vs. idealistic ?).
The point is I want too keep it simple yet flexible.
Very similar story with css.
Thoughts ?
--
Michal Kurowski
<mkur@poczta.gazeta.pl>