NAME
Eidolon::Driver::Template::HTML - Eidolon HTML::Template driver.
SYNOPSIS
Somewhere in application controller:
my ($r, $tpl);
$r = Eidolon::Core::Registry->get_instance;
$tpl = $r->loader->get_object("Eidolon::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 Eidolon::Driver::Template::HTML is a template driver for Eidolon. 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 Eidolon::Driver::Template.
set(%vars)
Inherited from "set(%vars)" in Eidolon::Driver::Template.
parse($tpl)
Implementation of abstract method from "parse($tpl)" in Eidolon::Driver::Template.
render()
Implementation of abstract method from "render()" in Eidolon::Driver::Template.
SEE ALSO
Eidolon, Eidolon::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