NAME

Template::Quick - A simple Template System

SYNOPSIS

use Template::Quick;

$temp = new Template::Quick( {path => "./", template => "template.html"});

@data = (

        {name => 'Header'},

        {name => 'link', text => "Website", href => "http://lindnerei.de"},

        {name => 'link', text => "Cpan", href => "http://search.cpan.org~lze"},

        {name => 'Footer'}

);

print $temp->initArray(\@data);

template.html:

[Header]

A simple text.<br/>

[/Header]

[link]

<a href="[href/]">[text/]</a>

[/link]

[Footer]

<br/>example by [tr=firstname/] Dirk  [tr=name/] Lindner

[/Footer]

new

see SYNOPSIS

initTemplate

%template = (

         path     => "path",

         style    => "style", #defualt is Crystal

         template => "index.html",

);

initTemplate(\%template);

Template()

see initTemplate

appendHash()

appendHash(\%hash);

initArray()

getSelf()

AUTHOR

Dirk Lindner <lze@cpan.org>

LICENSE

Copyright (C) 2008 by Hr. Dirk Lindner

This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.