HTML::Transmorgify::ObjectGlue - virtual base clase for HTML::Transmorgify::Metatags objects
use base qw(HTML::Transmorgify::ObjectGlue); sub text { my ($self) = @_; return "a text representation of the whole object" } sub lookup { my ($self, $key) = @_; return $a_subkey_of_the_object; } sub expand { my ($self) = @_; return @a_list_of_items_in_the_object } sub set { my ($self, $key, $value) = @_; maybe: $self->{$key} = $value }
This is a virtual base class for HTML::Transmorgify variables that are accessed by HTML::Transmorgify::Metatags directives.
Variables can have multiple components to their names, separated with dot (.) and the components will be looked up one-by-one.
There are four methods that need to be implemented:
Convert the entire object to a text string.
Look up a value within the object. The return value can be a scalar, a hash ref, an array ref, or another HTML::Transmorgify::ObjectGlue-based object.
Return a list of the sub-objects in the object. This is used by HTML::Transmorgify::Metatags for iterating over the sub-objects with <foreach>.
XXX
1 POD Error
The following errors were encountered while parsing the POD:
=over without closing =back
To install HTML::Transmorgify, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Transmorgify
CPAN shell
perl -MCPAN -e shell install HTML::Transmorgify
For more information on module installation, please visit the detailed CPAN module installation guide.