recursive method with nvelocity
-
11-02-2021 - |
Question
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?
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow