[ZPT] how to include an HTML-fragment in a ZPT?

Evan Simpson evan@digicool.com
Thu, 10 May 2001 11:51:47 -0400


From: "Roland Sch=E4tzle" <roland.schaetzle@adviion.de>
> I have a Page Template in which I would like to include a HTML document
[snip]
> The only solution I found is
> <p tal:content=3D"text here/aText">dummy</p>
> But in this case "aText" has also to be a Page Template.

What do you mean? "aText" should be able to be *anything* that has a text
value.

> Another variant I tested is
> <p tal:replace=3D"structure nocall:here/aText.html">dummy</p>
> But here the literal HTML source is included in my document which is no=
t
> what I want.

The 'nocall:' is preventing "aText.html" from being executed.  This shoul=
d
be:

<p tal:replace=3D"structure here/aText.html">dummy</p>

Cheers,

Evan @ digicool