Re: [ZPT] Proposal: add a 'prolog' property to templates

2007-03-22 Thread Chris Withers

Tres Seaver wrote:

Thoughts?


What about where you want the prolog to be dynamically computed?

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk

___
ZPT mailing list
ZPT@zope.org
http://mail.zope.org/mailman/listinfo/zpt


Re: [ZPT] Proposal: add a 'prolog' property to templates

2007-03-22 Thread Dieter Maurer
Tres Seaver wrote at 2007-3-22 07:24 -0400:
> ...
>Proposal
>- 
>
>Give templates an optional 'prolog' attribute, which, if present, would
>be prepended to the rendered output.
>
>
>Details
>- ---
>
>- - The prolog would likely need to be ASCII, as it appears before any of
>  the inline encoding hints.  ZPT might not need to enforce this
>  constraint.
>
>- - Persistent templates would expose this attribute as a property (in
>  the Zope2 ZMI) or as part of their schema (IZPTPage, or whatever).
>
>- - Filesystem-based templtes would have to keep the prolog in an
>  ancillary file (e.g., the CMF's '.metadata' file).
>
>
>Thoughts?

+1

Apart from the necessity to have a ".metadata" file to specify
a prolog for filesystem based templates.

Usually, all HTML templates and all XML templates of a site
share a common DTD (and or prolog). It would be nice to be able
to configure the default prologs (and use a ".metadata" only when
the default is inadequate).



-- 
Dieter
___
ZPT mailing list
ZPT@zope.org
http://mail.zope.org/mailman/listinfo/zpt