[Templates] more than one tag style

Andy Wardley abw@andywardley.com
Tue, 7 Jan 2003 10:25:36 +0000


Phil Harley wrote:
> I am trying to use splash menus and need to make the menu items dynamic 
> at runtime.

Is there any reason why you can't just resolve this at runtime?

For example, you could define all your tabs data in one place...

[% tabset = {
     1 = { ... }
     2 = { ... }
     default = { ... }
   }
%]

...and then index into it to get the tabs you're looking for.  

[% tabs = tabset.$sec or tabset.default %]

A