Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

rhesa (5696)

  (email not shown publicly)

Journal of rhesa (5696)

Thursday August 04, 2005
05:15 PM

hooked on markjugg

[ #26104 ]

So, first he gives us callbacks in CGI::Application. Soon we'll have them in HTML::Template too. And if that's not enough, he's enabling magic-dot notation as well!

Three cheers for Mark! Yay Mark, way to go :)))))

Ok, so I thought it would be cool to be able to pass arguments to method calls as well, so you can do, say,

<tmpl_var datetime.strftime(%c)>

And mix method calls and hash-key referencing:

<tmpl_var mock.method.some_key>

That would help, for instance, when that method returns a hashref, or when a hash contains some objects.

I've got something thrown together at the moment, but it's still crude. These two samples work though :)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Thanks for the kind words. As I recall, the idea for callbacks in C::A came from Cees Hek, and Michael Graham later helped significantly to refine the code. It was a group effort.

    I was hesitant about it at the time, but we only have to look at the growing number of plugins [] for C::A to see that the value of a functional plugin system for that user community.