Randal wrote:

> If hash is blessed, then .keys is $object->keys, not keys %$hashref.
> There's no easy way to peer inside an object with TT.

This got me thinking... what if you could unbless() a hash? Sure enough, a
CPAN search brought up a couple modules that can do it. I made a two-line
modification to Template::Plugin::Stash, called it Template::Plugin::Root,
and the template worked, mapping the data structure from the very top!

Turned out to be easier than I thought. Now to make the template handle more
than just hashes...


-- 
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