Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by lachoy (Parson)
on Mar 01, 2005 at 02:36 UTC ( #435264=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Foo;
    sub new   { return bless ( { count => 1 } ) }
    sub count { $_[0]->{count}++ }
    1;
    
  2. or download this
    use Foo;
    use Template;
    ...
    Call: [% bar.count %]
    Call: [% bar.count %]
    Call: [% bar.count %]
    
  3. or download this
    I am calling methods on the object named 'bar':
    
    Call: 1
    Call: 2
    Call: 3
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2019-10-16 19:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?