HTML::Template, is it possible to nest <TMPL_VAR> inside a <TMPL_IF>?

HTML::Template, is it possible to nest <TMPL_VAR> inside a <TMPL_IF>?

am 04.06.2007 22:58:05 von Val Schuman

trying to do >do something
is something like this possible? if not, any workarounds?

Re: HTML::Template, is it possible to nest <TMPL_VAR> inside a <TMPL_IF>?

am 05.06.2007 10:35:25 von Bianka Martinovic

Val Schuman schrieb:
> trying to do >do something
> is something like this possible? if not, any workarounds?
>
You want to do this (I think):


do something


This prints "do something" if "myvar" is set. If not, the whole block
will be deleted.

Greetings, Bianka

Re: HTML::Template, is it possible to nest <TMPL_VAR> inside a <TMPL_IF>?

am 06.06.2007 13:00:44 von Paul Lalli

On Jun 5, 4:35 am, Bianka Martinovic
wrote:
> Val Schuman schrieb:> trying to do >do something
> > is something like this possible? if not, any workarounds?
>
> You want to do this (I think):
>
>
> do something
>

>
> This prints "do something" if "myvar" is set. If not, the whole
> block will be deleted.

It prints "do something" if "myvar" is set *to a true value*. If it's
set to 0 or "", the block will be skipped.

Paul Lalli

Re: HTML::Template, is it possible to nest <TMPL_VAR> inside a <TMPL_IF>?

am 12.06.2007 16:15:22 von Tim Berke

Val Schuman wrote:
> trying to do >do something
> is something like this possible? if not, any workarounds?
>

Not exactly what you are looking for I think but a loop inside a loop example (working).
Tim




<TMPL_VAR NAME="title">






















Re: HTML::Template, is it possible to nest <TMPL_VAR> inside a <TMPL_IF>?

am 28.06.2007 10:36:31 von google.20.cerberus

On Jun 6, 1:00 pm, Paul Lalli wrote:
>
> It prints "do something" if "myvar" is set *to a true value*. If it's
> set to 0 or "", the block will be skipped.
>
That's what I meant. ;)

Greetings, Bianka