Dynamic multilevel menu from section?

Sorry for double post, but i solved this.

in menu template i needed to change if statement to:

<li class="{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}active{{ end }}">

and now it is working fine.

Oh, and yaml don’t like tabs - for menu structure i needed to use 2 spaces, not tab.