AW: [Zope] Exsternal method quote

Projekt01, Roger Ineichen r.ineichen@projekt01.ch
Wed, 23 Oct 2002 23:10:27 +0200


Thanks Dieter you're knowledge are really great.

I found also a answer in a document called Zope Page Templates:
"Advanced Usage" from digital creations

a example usage of structure
____________________________
Inserting Structure
Normally, the tal:replace and tal:content statements quote the text that
they insert, converting < to <, for instance. If you actually want to
insert the unquoted text, you need to precede the expression with the
structure keyword. Given a variable copyright, the following two lines:

      <span tal:replace=3D"copyright">Copyright 2000</span>
      <span tal:replace=3D"structure copyright">Copyright 2000</span>

...might generate "=A9 2001 By <b>Me</b>" and "=A9 2001 By Me" =
respectively.

This feature is especially useful when you are inserting a fragment of
HTML that is stored in a property or generated by another Zope object.
For instance, you may have news items that contain simple HTML markup
such as bold and italic text when they are rendered, and you want to
preserve this when inserting them into a "Top News" page. In this case,
you might write:

      <p tal:repeat=3D"article topnewsitems"
         tal:content=3D"structure article">A News Article</p>

Mit freundlichen Gr=FCssen
Roger Ineichen
___________________________
Projekt01 GmbH
www.projekt01.ch
Langackerstrasse 8
6330 Cham
phone +41 (0)41 781 01 78
mobile +41 (0)79 340 52 32
fax +41 (0)41 781 00 78
email r.ineichen@projekt01.ch
___________________________
END OF MESSAGE


=20

> -----Urspr=FCngliche Nachricht-----
> Von: Dieter Maurer [mailto:dieter@handshake.de]=20
> Gesendet: Mittwoch, 23. Oktober 2002 20:31
> An: r.ineichen@projekt01.ch
> Cc: zope@zope.org
> Betreff: Re: [Zope] Exsternal method quote
>=20
>=20
> Projekt01, Roger Ineichen writes:
>  > What can I do if I whould return html code frome a=20
> external method?  > It always quote the return string It=20
> seems that you are calling your external method from ZPT.
>=20
> In this case, you must use "structure" in from of your call.
>=20
>=20
> Dieter
>=20