Escape angularJS terms in html while rendering it

I am using angularJS with flask at the template has angular terms like(I know they are not called terms but i cant explain it in better way)

       {{}} {{Person.number}}

I want to render this template in my flask views.

I tried to use render_template(“templatename.html”).
But it shows me Person not defined error.(Obviously sice i dint pass any parameters and it is not considering them to related to angular)

So i have found a workaround and used this

return make_response(open("templatename.html",'r').read())

And this works!

But now i have to pass parameters to the template and i cant do it with this workaround!
Can anyone please suggest me some other way to escape angular related terms in html and render it.

Source: python

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.