Take the 2-minute tour ×

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 :

    #foreach($foo in $foos)
            // recursive method I want to render alls the foos

How can I do that?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

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

share|improve this answer
ok I tried with macro but I can't make it work, I will use Helper, Thank you –  Christophe Debove Oct 25 '11 at 12:14
add comment

Your Answer


