[ZPT] (newbie) tal:content more than once

Evan Simpson evan@digicool.com
Mon, 30 Apr 2001 11:46:30 -0500


From: "Peter Bengtsson" <peter@grenna.net>
> In DTML:
> <title><dtml-var titl> -:- <dtml-var document_title></title>
> In TAL
> ????help?

For this sort of thing, you use <span> tags:

<title><span tal:replace="here/title">Title</span> -:-
         <span tal:replace="template/title">Title</span></title>

Although for this simple case, you could use string interpolation:

<title tal:content="string:${here/title} -:-
${template/title}">Title</title>

Cheers,

Evan @ digicool