Jeff Anderson wrote:
> As i said in my previous email (which only Mark saw) ... just 
> use the scalar output of Data::Dumper and call it a day.

Actually, in my original post I mentioned that Data::Dumper is not friendly
enough. I also thought about GraphViz, but I'm backing off from that as it
looks like the effort/value ratio is too low :) The HTML used in the
Badger's example will work.

> However, the example _I_ spoke of does give a generic 
> template. Here it is again:

Actually, that's not generic enough. You need to know the name of the hash
key(s) passed to the template. I was looking for one that can automatically
discover them. Fortunately, Template::Plugin::Stash does the trick.

> Good luck ... and don't waste your time on this ... it's 
> silly when Data::Dumper or similar already does a decent job, 
> decent enough that i use it here at work for debugging our Web App.

If I was only looking for debugging, I'd agree with you completely. As the
subject of this thread might imply though, I'm thinking about building a
system where a non-programmer can "point" a special template at a service
and discover what variables are available to include in their own templates.


-- 
Mark Thomas                    [EMAIL PROTECTED]
Internet Systems Architect     User Technology Associates, Inc.

$_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;;
 


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to