The second argument here tells whether this menu item is active or not. Setting this to true adds the class="
web2py-menu-active" to the li of the menu-item.
Unfortunately though, this class is not implemented by default in web2py, and nor is the argument set to (request.function=='index') which would be more pedagogic. However, since the default menu is made in twitter bootstrap, it would be neater to use bootstrap's own active class, which is simply named "active".
How can I change the current line of code to set the active class to "active" instead of "web2py-menu-active"?
The current menu code in layout.html is:
{{=MENU(response.menu, _class='mobile-menu nav' if is_mobile else 'nav',mobile=is_mobile,li_class='dropdown',ul_class='dropdown-menu')}}