I am trying to use the code in the link here within Flask, but it seems that Jinja2 is trying to interpret the json filter. I have edited the code slightly by encapsulating flask variables with startSymbol [[ and endSymbol ]]. This has been done by adding the following code to my controller:
app.config(function ($interpolateProvider) {
$interpolateProvider.startSymbol('[[');
$interpolateProvider.endSymbol(']]');
});
Furthermore, I have explored Triangle, but this introduces its own set of errors (namely, NameError: name 'unicode' is not defined) as a result of the module not working with Python3. It also seems that Triangle hasn't been supported for a while, so I'm not sure that this will be addressed soon. Any suggestions would be much appreciated. As an aside, I am curious why Jinja is trying to interpolate code that does not reside between its expected delimiters ( {{ and }} ).
- Python 3.4.3
- Angular 1.5.5
- Flask 0.10.1
- Jinja2 2.7.3
- Triangle 0.5.4
