I have created a quick fix, by moving the script content into a tal:content attribute of a script tag and using variable interpolation in a string: directive. A better fix would be to moving the construction of the script into the python view class.
I have created a quick fix, by moving the script content into a tal:content attribute of a script tag and using variable interpolation in a string: directive. A better fix would be to moving the construction of the script into the python view class.