Module: Kin::Nav::Helper
- Defined in:
- lib/kin/nav/helper_mixin.rb
Overview
Mix into your Merb::GlobalHelpers module (not done automatically).
Instance Method Summary collapse
-
#display_navigation(name, options = {}) ⇒ String
Displays the navigation identified by
name.
Instance Method Details
#display_navigation(name, options = {}) ⇒ String
Displays the navigation identified by name.
You can change the formatter used to generate HTML for all menus by altering Merb::Plugins.config[:nav_formatter].
46 47 48 49 50 |
# File 'lib/kin/nav/helper_mixin.rb', line 46 def (name, = {}) ([:formatter] || Kin::Nav.get(name).formatter).new( Kin::Nav.get(name), self, ).to_html end |