[Zope] structured text with <dtml> tags?
Michel Pelletier
michel@digicool.com
Wed, 23 Feb 2000 00:03:41 -0800
Note that there is a minor behavioral difference when you put structured
text in a dtml document (or method) and when you put it in a straight
file object, although you loose the benefit of editing the content
through the web (you can use FTP, or HTTP PUT, or whatever) any dtml in
the structured text will not get rendered, and thus, is 'quoted'.
-Michel
"R. David Murray" wrote:
>
> On Tue, 22 Feb 2000, Alex Burton wrote:
> > I'm still discovering Zope and I'm having fun with structured text.
> > I'm wondering if there's a way to evaluate <dtml> tags in the
> > structured text before (or after) rendering the structured text to
> > HTML.
>
> Since StructuredText's main purpose (I think) is to be reasonably
> formatted for reading as straight ASCII while containing enough
> structure to allow better rendering, I'm not sure why you'd want
> to interpret dtml tags inside it. In fact, I'd like the opposite:
> a way to supress the interpretation of *html* inside structure text
> (or, rather, to have the structured text output quote the html as
> appropriate to get it to render rather than interpret), thus allowing
> structured text fields to be used as a safe data entry format for
> a portal-type site. I'm guessing that there's a function I can
> call to do this encoding before passing the thing to the structured
> text interpreter, but I'm not sure what the magic incantation is.
> Can someone enlighten me?
>
> --RDM
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )