Class: Navtastic::Renderer::Simple

Inherits:
Navtastic::Renderer show all
Defined in:
lib/navtastic/renderer/simple.rb

Overview

This renderer only adds a current css class to the current item

Instance Method Summary collapse

Methods inherited from Navtastic::Renderer

#item_content, #menu_inside_container?, #menu_tag, render

Instance Method Details

#item_tag(item) ⇒ Object



7
8
9
# File 'lib/navtastic/renderer/simple.rb', line 7

def item_tag(item)
  li(class: current_css_class(item)) { yield }
end