28 Mar
2000
28 Mar
'00
7:52 p.m.
"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