On Thu, Nov 29, 2012 at 12:11 PM, Stuart Johnston <s...@thecommune.net> wrote:
> It is a hashref. I just trimmed it down to the minimum that causes the error. 
> To be more clear:
>
> [% x = { constants.foo => "value" } %]
>
> Or:
>
> [% function({ constants.foo => "value" }) %]
>
> It works fine as an arrayref so currently I am just converting it back to a 
> hash on the perl side.

The LHS of a hash is always treated as a string in TT, since that's
almost always what you want. The ugly ${} syntax you're forced to use
is because you're trying to perform the less-common operation.

--
Darren Chamberlain <d...@sevenroot.org>

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

Reply via email to