saschagottfried / todopyramid

My refactored version of ToDo Pyramid
1 stars 0 forks source link

Generate navbar with information returned by view #19

Closed saschagottfried closed 10 years ago

saschagottfried commented 10 years ago
saschagottfried commented 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.

http://docs.pylonsproject.org/projects/pyramid-tutorials/en/latest/humans/creatingux/step07/index.html

saschagottfried commented 10 years ago

Currently we have 6 code lines in views.py that use section variable to control the current navbar item CSS.