When I try to use a dictionary in a mako template, like this:
${{'x': 'a', 'y': 'b'}['x']}
I get a server error like this:
"SyntaxException: (SyntaxError) unexpected EOF while parsing (line 1)
(u"{'t': 'a', 'f': 'b'") in file '<file location>' at line: 22 char:
8"
along with a code listing and a traceback. No full debugger.
Am I doing something wrong? Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---