Subject: | SYNTAX => hte doesn't work under WinXP |
Hello.
I tried to use the HTML::Template Syntax for my templates by adding
sub template_args { return { SYNTAX => 'hte' }; }
As a result, all TMPL_VAR markups are gone from the rendered template,
without leaving the fillings! (=empty page)
I added the following test markups to my template:
1. <!-- TMPL_VAR NAME="CONTENT" -->
2. <TMPL_VAR NAME="CONTENT">
3. [% CONTENT %]
My script has the following hash_swap hook:
sub hash_swap {
return {
CONTENT => 'PAGE ID: '
};
}
When removing the template_args hook from the script, [% CONTENT %] is
replaced by 'PAGE ID: ' correctly. Using the hook, lines 1 + 2 are
removed from the template (=replaced with 'nothing'), while [% CONTENT
%] is left untouched, as you would expect.
When integrating swap_template as it's suggested in the POD (=loading
HTML::Template explicitly), lines 1 + 2 are replaced with 'PAGE ID: '
correctly.
Perl Version: v5.8.8 built for MSWin32-x86-multi-thread
Platform:
osname=MSWin32, osvers=5.0, archname=MSWin32-x86-multi-thread
Greetings, Bianka