[Zope] dtml-call but with TAL
Andreas Jung
Andreas Jung <andreas@andreas-jung.com>
Thu, 10 Jul 2003 19:30:47 +0200
--On Donnerstag, 10. Juli 2003 18:23 Uhr +0100 Peter Bengtsson
<mail@peterbe.com> wrote:
> I have several places where the DTML used to look like this::
>
> <dtml-call "IfNotLoggedInRedirectSomewhere()">
>
> The equivalent in TAL would be what?
>
>
> My current implementation is::
>
> <span tal:define="dummy here/IfNotLoggedInRedirectSomewhere"
> tal:replace="nothing"></span>
>
> There must be a more good looking solution other than rewriting the whole
> way the site works.
Shorter:
<span tal:define="dummy here/IfNotLoggedInRedirectSomewhere" />
-aj