[Templates] Missing hash and MACRO assignment in docs?

Andy Wardley abw@andywardley.com
Tue, 19 Nov 2002 14:17:01 +0000


darren chamberlain wrote:
> Its omission from the docs is accidental.

There is a brief mention in Template::Manual::Variables

     You can use Perl's familiar '{' ... '}' construct to
     explicitly create a hash and assign it to a variable.
     Note that commas are optional between key/value pairs and
     '=' can be used in place of '=>'.

           [% product = {
                id    => 'XYZ-2000',
                desc  => 'Bogon Generator',
                price => 666,
              }
           %]

http://tt2.org/docs/leon/Manual/Variables.html#Hash_Array_References

A