Categories > TinyButStrong general >

Special condition

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: saibal
Date: 2007-10-16
Time: 14:48

Special condition

Hi,
I used for long time a simple template engine. Now i want to use Tinybutstrong and it's really powerfull.

With the old template engine i have a scenario like this:

<IF NAME="res_guide">
xxx
<LOOP NAME="dati_guid">
{guid_name}
{guid_desc}
</LOOP NAME="dati_guid">
</IF NAME="res_guide">

How can i replicate this condition with TBS?

My problem is that i haven't html structure in this template

thanks
By: Skrol29
Date: 2007-10-16
Time: 15:30

Re: Special condition

Hi,

It could be something like this:
[onload;block=begin;when [var.dati_guide]=1]
  xxx
  [dati;block=begin]
    [dati.guid_name]
    [dati.guid_desc]
  [dati;block=end]
[onload;block=end]

By: saibal
Date: 2007-10-16
Time: 15:35

Re: Special condition

thank you! it works!