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