1

While upgrading chameleon template engine to version 2 , I've got errors like:

 NameError: global name '_c' is not defined

where '_c' is used as a variable in template like:

 tal:content="_c(item['category']"

in chameleon 1.2 everything was ok.
Is there any way to make it working without changing all names starting from "_" in templates?

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Robert Zaremba
  • 8,081
  • 7
  • 47
  • 78

1 Answers1

2

That was a bug.

New versions of chameleon fix this.

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Robert Zaremba
  • 8,081
  • 7
  • 47
  • 78