Closed saschagottfried closed 10 years ago
Yeah, found this example that implements the logic to control the current active navbar item. ToDoPyramid is already using this Layout Example to use a Master Layout Macro. We want to implement Layout.site_menu() to remove logic from template global_layout.pt into view code and make view code testable.
Currently we have 6 code lines in views.py that use section
variable to control the current navbar item CSS.