Class: Orthor::Page

Inherits:
Object show all
Defined in:
lib/orthor/page.rb

Instance Attribute Summary

Attributes inherited from Object

#path

Instance Method Summary collapse

Methods inherited from Object

#content, #initialize, #path_name

Methods included from HttpCaching

#cache_for

Constructor Details

This class inherits a constructor from Orthor::Object

Instance Method Details

#fetch_contentObject



3
4
5
# File 'lib/orthor/page.rb', line 3

def fetch_content
  Orthorings.content(@id, @template)
end

#titleObject



7
8
9
# File 'lib/orthor/page.rb', line 7

def title
  Orthorings.content(@id)["Title"]
end