Trying to use a constant as a hash key gives this error: "unexpected token (.)".

Here is what I am trying to do:

[% { constants.foo => "value" } %]

This works but is a bit ugly:

[% { ${constants.foo} => "value" } %]

Any other suggestions?

_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to