in reply to Template::Toolkit: get the names of mentioned variables?
Not really, there are so many legitimate variants that it's next to impossible to parse the template to determine what variables are going to be called (what do you do when you run up against var1.$var2.{$var3.$var4}.something?
What I ended up doing when I needed to solve a similar problem was to override the Template::Stash object, with one that could determine the value to be put there at runtime. You may want to check the Class::DBI::Template::Stash subclass in my Class::DBI::Template module to see how I solved it.
| We're not surrounded, we're in a target-rich environment! |
|---|
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Template::Toolkit: get the names of mentioned variables?
by dgaramond2 (Monk) on Apr 21, 2005 at 02:02 UTC | |
by dgaramond2 (Monk) on Apr 21, 2005 at 05:42 UTC |