Help for this page

Select Code to Download


  1. 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;
    
  2. or download this
    <html>
    <head>
    ...
    </body>
    </html>
    
  3. 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
    
  4. 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.
    
  5. or download this
    Q: What characters are allowed in TMPL_* NAMEs?
    A: Numbers, letters, '.', '/', '+', '-' and '_'.