Okay, so I want to display a list containing lists of lists of lists...
I have no way of knowing how many levels there are to display, so I figured this is where I b
The Razor view engine allows to write inline recursive helpers with the @helper keyword.
@helper
@helper ShowTree(IEnumerable foos) { @foreach (var foo in foos) { @foo.Title @if (foo.Children.Any()) { @ShowTree(foo.Children) } } }