I'm trying to write in the bottom part of any HTML page that I generate with Template::Toolkit a summary of the parameters that were passed to the template.
If I know that I'm passing a hash named some_hash
, I can dump it with:
[% USE Dumper;
GET Dumper.dump( some_hash );
Since I want to have this dump into a footer.tt
template that I'm including in all other templates, is there a way I can generalize this to all the variables that are passed to each page? I don't understand how can I get a list of variables passed to the template.