Class Webby::Resources::Page
In: lib/webby/resources/page.rb
Parent: Resource

A Page is a file in the content folder that contains YAML meta-data at the top of the file. Pages are processed by the Webby rendering engine and then inserted into the desired layout. The string resulting from processing and layout is then written to the output directory.

Methods

extension   new   render   url  

Public Class methods

Creates a new page object from the full path to the page file.

Public Instance methods

Returns the extension that will be appended to the output destination filename. The extension is determined by looking at the following:

  • this page‘s meta-data for an ‘extension’ property
  • the meta-data of this page‘s layout for an ‘extension’ property
  • the extension of this page file

This method is being deprecated. Please use the +Renderer#render+ method instead.

call-seq

   url    => string or nil

Returns a string suitable for use as a URL linking to this page. Nil is returned for layouts.

[Validate]