Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Templating algorithm - pass in variables vs callback?

by Thilosophy (Curate)
on Mar 01, 2005 at 03:14 UTC ( [id://435267]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     
    # with a subroutine reference that gets called to get the value
    # of the scalar.  The sub will recieve the template object as a
    # parameter.
    $self->param(PARAM => sub { return 'value' });
    
  2. or download this
    $tmpl->param(
        blah => sub {
    ...
        } );
    
    <tmpl_var name='blah(1,2,3)'>
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (7)
As of 2024-04-19 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found