Tree::Template::Declare::HTML_Element
See Tree::Template::Declare.
This module will build trees using HTML::Element.
To create text nodes, you would be forced to say:
node { name '~text'; attribs text => 'some text'; }
which is too cumbersone. You can instead use:
text_node 'some text';
HTML::Element's deobjectify_text method will be called by finalize_tree before returning the tree object.
deobjectify_text
finalize_tree
Gianni Ceccarelli <dakkar@thenautilus.net>
To install Tree::Template::Declare, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tree::Template::Declare
CPAN shell
perl -MCPAN -e shell install Tree::Template::Declare
For more information on module installation, please visit the detailed CPAN module installation guide.