[Zope-dev] dtml tags question
Michel Pelletier
michel@digicool.com
Tue, 28 Mar 2000 11:52:59 -0800
"Ibaņez Palomar Juan David" wrote:
>
> Hi,
>
> Is it possible to write a tag that can be used with and
> without closing tag?
>
> <dtml-translate>...</dtml-translate>
>
> or
>
> <dtml-translate ...>
I *think* you can, your tags __init__ method will be called with a
blocks sequence that will contain one block in the first case and zero
in the second.
Just don't go looking for any blocks in the second case and I bet it
would work. But it might not...
-Michel