[Zope-dev] ZPT & Plain Text

Chris Withers chrisw@nipltd.com
Wed, 05 Dec 2001 16:54:36 +0000


Steve Alexander wrote:
> 
> I guess you'd need to have a special page template interpreter that
> knows that it isn't putting out SGML-style stuff.

Indeed, you can, of course, use < amd & in the meantime if the HTML
parser in ZPT does barf (which maybe it shouldn't?)

Sounds like the content type in a page template could be very useful:

if content_type='text/plain':
  self._parser = PlainTextTagParser()
  self._alls_ommit_tags=1

cheers,

Chris