Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Using HTML::Template

by Ovid (Cardinal)
on Dec 16, 2000 at 03:44 UTC ( #46976=perltutorial: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Use of uninitialized value in concatenation (.) at D:\oursite\local\cg
    +i-bin\script.cgi line 219.
    
  2. or download this
    <html>
      <head><title>Test Template</title></head>
    ...
        </TMPL_IF>
      </body>
    </html>
    
  3. or download this
    <TMPL_VAR NAME=HEADING>
    
  4. or download this
    <TMPL_LOOP NAME=ENV_VARS>
    
  5. or download this
    <TMPL_VAR NAME=BGCOLOR>
    <TMPL_VAR NAME=NAME>
    <TMPL_VAR NAME=VALUE>
    
  6. or download this
    {
        BGCOLOR => '#FFFFFF',
        NAME    => 'Some Name',
        VALUE   => 'Some Value'
    }
    
  7. or download this
    <TMPL_INCLUDE NAME="footer.tmpl">
    
  8. or download this
    <small>This document brought to you by the letter 'P'</small>
    
  9. or download this
    <TMPL_IF NAME="BOOL">
      Some text that only gets displayed if BOOL is true!
    <TMPL_ELSE>
      Looks like BOOL was false.
    </TMPL_IF>
    
  10. or download this
    C:\perl\bin\perl.exe -T
    # Strictly speaking, taint checking is not required when you are
    ...
                        BOOL     => 1 } );
    
    print header, $template->output;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perltutorial [id://46976]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2014-07-30 12:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (231 votes), past polls