Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Template Toolkit 2

by lachoy (Parson)
on Apr 14, 2001 at 17:19 UTC ( #72573=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     my $tmpl = Template->new();
     $tmpl->process( 'user_form.tmpl',
    ...
                           { name => 'Bruce Springsteen',
                             last_login => '2000-01-01 05:45:00' },
                       common_date_format => \&my_date_format } );
    
  2. or download this
    <p>Welcome [% user.name %]. Your last login was
    [% common_date_format( user.last_login ) %].</p>
    
  3. or download this
     my $user = User->fetch( 'theboss' );
     my $tmpl = Template->new();
     $tmpl->process( 'user_form.tmpl',
                     { user => $user,
                       common_date_format => \&my_date_format } );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2021-12-01 00:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?