Class: Usmu::Page

Inherits:
Layout show all
Defined in:
lib/usmu/page.rb

Overview

Represents a page in the source directory of the website.

Instance Attribute Summary collapse

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

#initialize, #render

Constructor Details

This class inherits a constructor from Usmu::Layout

Instance Attribute Details

#content_pathstring (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.

Returns:

  • (string)

    the base path to the files used by this class.

See Also:



16
17
18
# File 'lib/usmu/page.rb', line 16

def content_path
  @configuration.source_path
end