Can someone help me figure out how to create a named hash, then include
it in a named list within a template? I can't understand why the
following does not work:
[%
mod_menu =
{
title=> "Title",
html=> "Html text"
}
right_modules = [
$mod_menu
]
%]
[% FOREACH module = right_modules %]
[% module.title %]
[% module.html %]
[% END %]
It produces an error:
! undef error - Template::Stash::XS: get (arg 2) must be a scalar or
listref
I also tried using \$mod_menu. In that case, I don't get an error but
nothing is printed.
--
Jason Peck
Focus Robotics
Tel. 603.594.3097
http://www.focusrobotics.com
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates