Template::Direct::Base - Basic class for content sections
Provide the low level functions applicable to all content sections
Create a new instance object.
Return true if this construct will be a single tag. i.e [tag/]
Should return a list of valid child tags.
Return true if this construct has a named tag.
Return true if this construct has a named sub tag.
Return an ARRAY ref of sub tag objects.
Used internally to add a sub tag element to this construct.
Complete a sub tag by closing it, used internally.
The tag id for the end tag of this construct.
The tag id for the start tag of this construct.
Set the id of the end tag of this construct.
Used internally to add a child construct to this one.
Set the parent object of this construct to $object.
Set the last parent which had the same class as this construct.
Return an ARRAY ref of child constructs.
Return the parent construct (if available)
Return the depth number for this tag.
Return the next parent with the same class as this one.
Return the depth number for this tag counting only tags of the same class as this one.
Get a parent at a certain depth.
Get the class parent of a certin depth.
Used internally to cascade the compilation to all children and replace and variables with $data as required.
Used internally, loop through all children and compile them with the same data and content.
Returns a hash ref of name vale pairs and described as a string in line. The line: "var='xyz' depth=0" becomes { var => 'xyz', depth => '0' }
Returns a section of a content between two tag indexes. Having two sections with the same tag indexes is not valid It's expected that code that deals with listing splits up it's calls to this method as a matter of structure.
Replaces a tag location with a temporty pointer.
Returns getSection of the current objects start and end tags
Sets the section back into the content (see getSection)
Sets the section back into the content tag directly
Returns the content between start and end tags, removing the start tag but only removing the end tag if it's an end tag for the start tag.
Replace all instances in content with required data
Removes any remaining content syntax from content
Martin Owens - Copyright 2007, AGPL
To install Template::Direct, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Direct
CPAN shell
perl -MCPAN -e shell install Template::Direct
For more information on module installation, please visit the detailed CPAN module installation guide.