{%for key, menuInfoList in menuTree.iteritems()%} {%if menuInfoList|length==1%}
{{this._getMenuHandlerScript(menuInfoList[0])}} {%elif menuInfoList|length>1%}
{%for menuInfo in menuInfoList%}
{{menuInfo['title']}}
{{this._getMenuHandlerScript(menuInfo)}}
{%endfor%}
{%endif%} {%endfor%}