NAME

Template::Like - Lightweight Template Engine.

SYNOPSIS

#!/usr/bin/perl

use lib 'lib';
use strict;
use Template::Like;

my $input = q{
[% var %]
[% FOREACH var = vars %]
�E[% var.name %]
[% END %]
[% var %]
[% IF bool %]TURE!![% ELSE %]FALSE!![% END %]
[% UNLESS bool %]TURE!![% ELSE %]FALSE!![% END %]
};

my $param = {
  var  => "HOGE",
  vars => [ { { name => "FOO" } }, { { name => "BAR" } } ],
  bool => 1
};

my $t = Template::Like->new;

my $output = "";

$t->process(\$input, $param, \$output);

print $output;

exit;

result

HOGE

�EFOO

�EBAR

HOGE
TURE!!
FALSE!!

DESCRIPTION

Directive

GET =item SET =item USE =item CALL =item FOREACH =item WHILE =item IF =item UNLESS =item ELSIF =item ELSE =item END =item FILTER =item DUMMY =item INSERT =item INCLUDE =item PROCESS

VMethods

scalar

defined =item length =item repeat =item replace =item match =item search =item split =item list =item hash =item size =item substr =item html =item uri

array

first =item last =item size =item max =item reverse =item join =item grep =item sort =item nsort =item unshift =item push =item shift =item pop =item unique =item merge =item slice =item splice =item list

hash

keys =item values =item each =item defined =item exists =item size =item item =item list

official http://www.template-like.org

SEE ALSO

Template

AUTHOR

Shinichiro Aska, <askadna@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2007 by Shinichiro Aska

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or, at your option, any later version of Perl 5 you may have available.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 109:

Non-ASCII character seen before =encoding in '�E[%'. Assuming CP1252