[Zope] Autohandlers like in Mason ...
Tres Seaver
tseaver@palladion.com
Thu, 10 Feb 2000 17:41:06 -0600
"Ramarao Kanneganti" <rama@savera.com> wrote:
> Hi,
>
> I am trying to convert a HTML::Mason powered site into Zope powered site. It
> uses autohandlers heavily so that any HTML file uploaded would get a header
> and footer and some other nifty features.
>
> I know that you can define standard_header and footer to do similar things
> in Zope. But it means people need to include them using DTML in the files. I
> am wondering if there is a way to force all the content under a particular
> folder or path to go through an auxiliary program. In the minimal case, I
> would be satisfied with something like Apache::Sandwich.
>
> I would like to know if there is some product that does what I want.
The clean solution would be to derive a new ZClass which holds the existing
document body as a text property, and wraps the standard_html_header/footer
around it in the class' index_html method. The *_add method could handle
stripping out / converting any other Mason-specific stuff before storing the
property.
--
=========================================================
Tres Seaver tseaver@palladion.com 713-523-6582
Palladion Software http://www.palladion.com