[Zope] dtml-call but with TAL

Geir Bækholt Geir Bækholt
Thu, 10 Jul 2003 19:53:38 +0200


On  Thu, 10 Jul 2003 18:23:52 +0100 GMT (..19:23 where i live(GMT+2) )
Peter Bengtsson asked the Zope mailinglist about the following:
  
> 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.


slightly more good looking :

<tal:redirect define="dummy here/IfNotLoggedInRedirectSomewhere" />

:)



--
Geir Bækholt