Class: Usmu::Page
- Inherits:
-
Layout
- Object
- StaticFile
- Layout
- Usmu::Page
- Defined in:
- lib/usmu/page.rb
Overview
Represents a page in the source directory of the website.
Instance Attribute Summary collapse
-
#content_path ⇒ string
readonly
protected
Returns the base path to the files used by this class.
Attributes inherited from Layout
#input_path, #metadata, #output_extension, #output_filename, #provider_name, #template_class, #type
Attributes inherited from StaticFile
#input_path, #name, #output_filename
Method Summary
Methods inherited from Layout
find_layout, #get_variables, #initialize, is_valid_file?, #render
Methods inherited from StaticFile
Constructor Details
This class inherits a constructor from Usmu::Layout
Instance Attribute Details
#content_path ⇒ string (readonly, protected)
Returns the base path to the files used by this class.
This folder should be the parent folder for the file named by the name attribute.
16 17 18 |
# File 'lib/usmu/page.rb', line 16 def content_path @configuration.source_path end |