NAME

Template::Flute::HTML - HTML Template Parser

SYNOPSIS

$html_object = new Template::Flute::HTML;

$html_object->parse('<div class="example">Hello world</div>');
$html_object->parse_file($html_file, $spec);

CONSTRUCTOR

new

Create a Template::Flute::HTML object.

METHODS

containers

Returns list of Template::Flute::Container objects for this template.

container NAME

Returns container object named NAME.

lists

Returns list of Template::Flute::List objects for this template.

list NAME

Returns list object named NAME.

forms

Returns list of Template::Flute::Form objects for this template.

form NAME

Returns form object named NAME.

values

Returns list of values for this template.

iterators

Returns hash with iterator names as keys and iterator objects as values.

root

Returns root of HTML/XML tree.

translate I18NOBJECT

Localizes static text inside the HTML template through the I18NOBJECT.

file

Returns name of template file.

parse [ STRING | SCALARREF ] SPECOBJECT

Parses HTML template from STRING or SCALARREF with the help of a Template::Flute::Specification object SPECOBJECT.

parse_file FILENAME SPECOBJECT

Parses HTML template from file FILENAME with the help of a Template::Flute::Specification object SPECOBJECT.

hook_html ELT VALUE

Parse HTML provided by VALUE and replace any children of ELT with the result.

AUTHOR

Stefan Hornburg (Racke), <racke@linuxia.de>

LICENSE AND COPYRIGHT

Copyright 2010-2021 Stefan Hornburg (Racke) <racke@linuxia.de>.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.