When creating webpages with navigation and menus, it is often nessesary to assign css class for menu item that the visitor is currently viewing. This post shows an example how to get current route name from a template for that purpose. Read more…