|Think about Loose Coupling|
Perl CGI and Template Toolkitby Perobl (Beadle)
|on Jan 03, 2012 at 20:13 UTC||Need Help??|
Perobl has asked for the
wisdom of the Perl Monks concerning the following question:
I'm trying to create an auto-generated email that will share some data with the recipient. Normally I would pass variables to TT2 using a hash ref and TmplParams:
I can pass most of what I need to pass in %mail_params, however, I'd like to also pass data for a small table. When I pass this to standard HTML, I simply use a HoH.
TT2 EXAMPLE (displaying HoH)
I don't think I can pass a HoH using MIME::Lite::TT::HTML.
Can anyone offer me advice for dealing with a hash and a HoH? Thank you.