- or download this
#!/usr/bin/perl
...
# send the obligatory Content-Type and print the template output
print "Content-Type: text/html\n\n", $template->output;
- or download this
<html>
<head>
...
</body>
</html>
- or download this
# ./test-templ.pl
### HTML::Template Debug ### In _parse:
...
### HTML::Template Debug ### site-page.tmpl : line 22 : LOOP end
HTML::Template : Attempt to set nonexistent parameter 'slotname' - thi
+s parameter name doesn't match any declarations in the template file
+: (die_on_bad_params => 1) at ./test-templ.pl line 9
- or download this
HTML::Template's tags are meant to mimic normal HTML tags. However, th
+ey are allowed to "break the rules". Something like:
<img src="<TMPL_VAR IMAGE_SRC>">
is not really valid HTML, but it is a perfectly valid use and will wor
+k as planned.
- or download this
Q: What characters are allowed in TMPL_* NAMEs?
A: Numbers, letters, '.', '/', '+', '-' and '_'.