Module: Porous::Page

Included in:
Home
Defined in:
lib/porous/page.rb

Instance Method Summary collapse

Instance Method Details

#page_descriptionObject



14
# File 'lib/porous/page.rb', line 14

def page_description = nil

#page_titleObject



13
# File 'lib/porous/page.rb', line 13

def page_title = 'Porous Web'

#route!Object

Define the route according to the Router::Routes rules



6
7
8
9
10
11
# File 'lib/porous/page.rb', line 6

def route!
  path = route
  @route ||= Routes.new.tap do |routes|
    routes.route path, to: self.class
  end
end