
Dotiac::DTL::Template - A Dotiac/Django template.

require Dotiac::DTL;
$t=Dotiac::DTL->new("file.html")
$t->print();
Creates a new empty Dotiac::DTL::Template, don't use this, use Dotiac::DTL->new(FILE,COMPILE).
Works like HTML::Templates param() method, will set a param that will be used for output generation.
my $t=Dotiac::DTL->new("file.html");
$t->param(FOO=>"bar");
$t->print();
#Its the same as:
my $t=Dotiac::DTL->new("file.html");
$t->print({FOO=>"bar"});
Returns the value of the param NAME if VALUE is skipped.
Returns the templates output.
Parameters to give to the template. See Variables below.
Same as string(HASHREF) just for HTML::Template and Django syntax.
You can think of these two being equal:
print $t->string(HASHREF);
$t->print(HASHREF);
But string() can cause a lot of memory to be used (on large templates), so print() will print to the default output handle as soon as it has some data, which uses a lot less memory.

http://www.djangoproject.com, Dotiac::DTL

If you find a bug, please report it.

Dotiac::DTL was built according to http://docs.djangoproject.com/en/dev/ref/templates/builtins/.

Marc-Sebastian Lucksch
perl@marc-s.de