my
$debug
= 0;
my
$template
= HTML::Template::JIT->new(
filename
=>
'basic.tmpl'
,
path
=> [
't/templates'
],
jit_path
=>
't/jit_path'
,
jit_debug
=>
$debug
,
);
$template
->param(
foo
=>
'foo!'
);
my
$output
=
$template
->output();
like(
$output
,
qr/I say foo!/
);
$template
= HTML::Template::JIT->new(
filename
=>
'basic.tmpl'
,
path
=> [
't/templates'
],
jit_path
=>
't/jit_path'
,
jit_debug
=>
$debug
,
);
$template
->param(
foo
=>
'bar!'
);
$output
=
$template
->output();
like(
$output
,
qr/I say bar!/
);
$template
= HTML::Template::JIT->new(
filename
=>
'basic.tmpl'
,
path
=> [
't/templates'
],
jit_path
=>
't/jit_path'
,
jit_debug
=>
$debug
,
);
$output
=
$template
->output();
ok(
$output
!~
qr/I say bar!/
);