How to render menu with one active item with DRY?
问题 I would like to render a constructions like: <a href='/home'>Home</a> <span class='active'>Community</span> <a href='/about'>About</a> Where Community is selected menu item. I have menu with same options for several templates but I would not like to create combinations for each template: <!-- for Home template--> <span class='active'>Home</span> <a href='/comminuty'>Community</a> <a href='/about'>About</a> ... <!-- for Community template--> <a href='/home'>Home</a> <span class='active'