Since I wanted to use AngularJS in combination with Flask, I was looking for a cool tool to properly handle these frameworks, as Jinja and Angular will have problems with each other. I found a Triangle that is pretty cool and works, but only to a certain point. For example, such things work, for example:
<a ng-show="post.link" href="{{post.link|angular}}">
{{post.title|angular}}
</a>
But, on the other hand, this does not work:
<span>
<a href="#/posts/{{$index|angular}}">Comments</a>
</span>
When I try to do this, I get the following error
jinja2.exceptions.TemplateSyntaxError
TemplateSyntaxError: unexpectedly char u '$' at 875
Am I doing something wrong or in this case a limited frame? Help is much appreciated.
source
share