NAME

Helix::Driver::Template::HTML - Helix Framework HTML::Template driver.

SYNOPSIS

Somewhere in application controller:

my ($r, $tpl);

$r   = Helix::Core::Registry->get_instance;
$tpl = $r->loader->get_object("Helix::Driver::Template::HTML");

$tpl->set
(
    "TITLE"   => "Example",
    "CONTENT" => "Lorem ipsum dolor sit amet"
);

$r->cgi->send_header;
$tpl->parse("index.tpl");
$tpl->render;

DESCRIPTION

The Helix::Driver::Template::HTML is a template driver for Helix Framework. It is based on famous HTML::Template package, that provides a lot of tasty functions for separating code and markup.

To use this driver you must have HTML::Template package installed.

METHODS

new($templates_dir)

Inherited from "new($templates_dir)" in Helix::Driver::Template.

set(%vars)

Inherited from "set(%vars)" in Helix::Driver::Template.

parse($tpl)

Implementation of abstract method from "parse($tpl)" in Helix::Driver::Template.

render()

Implementation of abstract method from "render()" in Helix::Driver::Template.

SEE ALSO

Helix, Helix::Driver::Template, HTML::Template

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Anton Belousov, <abel@cpan.org>

COPYRIGHT

Copyright (c) 2009, Atma 7, http://www.atma7.com