[Zope] How to automagically wrap any dtml-doc with std_header/footer

Philippe Jadin philippe@123piano.com
Fri, 26 Oct 2001 09:23:16 +0200


>    http://bar/foo
> 
> it should be returned to the browser as if it had looked like this:
> 
> ---
> <dtml-var standard_html_header>
> <h1>Foo rules!</h1>
> <dtml-stuff expr="goes here" ...>
> <p>blah!</p>
> </dtml-var standard_html_footer>
> ---
> 
> ZPT/TAL or CMF answers need not apply, as they are (in our opinion, anyway)
> too un-mature at this point to be usable for our particular project.
> 
> Any help appreciated.


Make /foo a folder, put your content in a dtml doc called content within
/foo :


/foo/content

and create a root index_html with :

<dtml-var standard_html_header>
<dtml-var content>
</dtml-var standard_html_footer>

Does it sounds ugly to anyone ?

Philippe