Class: WhoNeedsWP::PageIndex

Inherits:
Sidebar
  • Object
show all
Defined in:
lib/who-needs-wp/sidebar/pageindex.rb

Overview

A sidebar component to display a list of pages

Instance Method Summary collapse

Methods inherited from Sidebar

#initialize, render_all

Constructor Details

This class inherits a constructor from WhoNeedsWP::Sidebar

Instance Method Details

#renderObject

See Sidebar.render



5
6
7
# File 'lib/who-needs-wp/sidebar/pageindex.rb', line 5

def render
  WhoNeedsWP::render_template("pageindex", { :pages => WhoNeedsWP::Page.all })
end