Setup:
- a tree structure of the models.
- a representation of that structure in the HTML.
Issue:
How to know at any given recursion level the depth level at which currently I am?
Example:
This is the HTML:
<ul>
<li>
0
<ul>
<li>1</li>
<li>1</li>
</ul>
</li>
<li>0</li>
</ul>
0,1 are the children's depth level that I want to get at any given time.