Paul Seamons wrote:
I propose adding a DUMP directive. ...
I would just use the Dumper plugin for that. Is that not sufficient?
[SNIP]
So, I maintain my proposal. If I don't hear a contrary vote, I'll most likely
prepare a patch to add it.
[SNIP]
+1 from me. I agree with Paul's points. Dumping is a pretty standard activity. The
convenience of not having to use USE sounds nice. Bonus points if you allow some kind
of config option to allow us to specify a routine to call the Dumper function. (For
setting various Data::Dumper (or other) variables, to specify an alternate dumper, or
perhaps wrap the dump in a <pre> when using html.)
One other concern with this, although I'm not sure if it's an issue or not. I'm
not too sure about letting everyone dump the entire stash. Is there any other
code that can give a user the list of everything in the stash? (Not including
perl tags.) If not, I think it'd be best to provide a config option on whether
dumping the entire thing is allowed or not. (Or perhaps the previous config
option formatting routine could be used somehow to not return anything if they
want the entire stash?)
-- Josh
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates