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

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

by Thilosophy (Curate)
on Mar 01, 2005 at 03:14 UTC ( #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
Node Status?
node history
Node Type: note [id://435267]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2019-06-20 03:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (89 votes). Check out past polls.

    Notices?