Skip to content

4.1. Renderers

fr33z3 edited this page Jul 30, 2012 · 2 revisions

Default renderers

  • :list - renders Simple List menu Example:
    
    = navigation_for :main, :as => :list
    = list_for :main (from version 0.0.10)
    
  • :breadcrumb - renders Simple Breadcrumb Example:
    
    = navigation_for :main, :as => :breadcrumb
    = breadcrumb_for :main (from version 0.0.10)
    

Bootstrap style renderers

  • :bootstrap_list - renders bootstrap list
    
    = navigation_for :main, :as => :bootstrap_list
    = bootstrap_list_for :main (from version 0.0.10)
    
  • :bootstrap_breadcrumb - renders bootstrap breadcrumb
    
    = navigation_for :main, :as => :bootstrap_breadcrumb
    = bootstrap_breadcrumb_for :main (from version 0.0.10)
    
  • :bootstrap_tabs - renders bootstrap tabs
    
    = navigation_for :main, :as => :bootstrap_tabs
    = bootstrap_tabs_for :main (from version 0.0.10)
    
  • :bootstrap_pills - renders bootstrap pills
    
    = navigation_for :main, :as => :bootstrap_pills
    = bootstrap_pills_for :main (from version 0.0.10)
    
  • :bootstrap_simple_nav - renderes simple bootstrap list (only in version 0.0.10)
    
    = navigation_for :main, :as => :bootstrap_simple_nav
    = bootstrap_simple_nav_for :main
    

New features

From version 0.0.10 you can use aliased render names like


  = bootstrap_breadcrumb_for :main

Just add '_for' to the end of renderer name and use it as method.

Something went wrong with that request. Please try again.