0

I'm working with monorail, I've :

in my model :

class Foo
{
   public List<Foo> foos;
}

in my controler :

PropertyBag["foos"] = foos; // foos is initialised

in my view :

<ul>
    #foreach($foo in $foos)
         <li>
            // recursive method I want to render alls the foos
         <li>  
    #end
</ul>

How can I do that?

Christophe Debove
  • 6,088
  • 20
  • 73
  • 124

1 Answers1

0

You could try writing a recursive macro (see caveats, reference, example), but I'd probably just write a helper instead.

Mauricio Scheffer
  • 98,863
  • 23
  • 192
  • 275