Dancer2::Plugin::PageHistory::Page - Page object for Dancer2::Plugin::PageHistory
Extra attributes as a hash reference, e.g.: SKU for a product page.
Absolute path of the page. This is the path as seen by the Dancer2 application so if the app is not mounted on '/' then this will be different from "request_path".
If not passed in the constructor will be set from "request".
The Dancer2::Core::Request object. Optional.
The original request path but without the query string.
If this was not supplied to the constructor then what this returns varies:
If "request" was supplied then this is used to determine the appropriate path to return.
Otherwise "path" is returned.
The original query string.
Page title.
Checks that at least one of 'request' and 'path' have been supplied or croaks.
The following predicate methods are defined:
has_attributes
has_title
Returns the string URI for "path" and "query_string".
Returns the string URI for "request_path" and "query_string".
To install Dancer2::Plugin::PageHistory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer2::Plugin::PageHistory
CPAN shell
perl -MCPAN -e shell install Dancer2::Plugin::PageHistory
For more information on module installation, please visit the detailed CPAN module installation guide.