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! |
|---|
In reply to Re: Template::Toolkit: get the names of mentioned variables?
by jasonk
in thread Template::Toolkit: get the names of mentioned variables?
by dgaramond2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |