andi/simple-navigation — Issue #90: Allow render multiple menu instances
Author: okliv
Created: 2012-03-02 00:50:55+00:00
State: open

i considered it obvious but didn't find how to resolve this case without creating new render...

case: i need to render other instance of menu in footer wrapped with another id and/or class.

what i did now: I created and registered one more renderer - full copy of default List class with one small editing at the end of it's render method:

content_tag(:ul, list_content, {:id => #####changed id#####, :class => item_container.dom_class})

is there more DRY technics for this?

thanx in advance