Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Getting all used parameters from a Template::Toolkit template -- try #2

by assemble (Friar)
on Mar 11, 2009 at 14:05 UTC ( #749883=note: print w/ replies, xml ) Need Help??


in reply to Getting all used parameters from a Template::Toolkit template

I think you could do this by subclassing the Template::Stash and overriding the new and get, then making a Template::Plugin module to provide the listing function. Looking at the Template::Stash code, it doesn't appear it would be a hugely painful experience, just a bit of a sting.


Comment on Re: Getting all used parameters from a Template::Toolkit template -- try #2
Re^2: Getting all used parameters from a Template::Toolkit template -- try #2
by Herkum (Parson) on Mar 11, 2009 at 14:33 UTC

    I was going to recommend something similar. Your real problem is that you need code that keeps track of which variables to access. I don't know if subclassing will be able to get you there though, it depends on how TT was written. If the code is structured poorly subclassing will get you no where.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (18)
As of 2014-07-14 15:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (267 votes), past polls