Google App Engine Jinja2 and Markupsafe

Google says MarkupSafe makes jina2 run faster here

I added it to my Yaml file as follows.

libraries:
- name: webapp2
  version: "2.5.1"
- name: jinja2
  version: latest
- name: markupsafe
  version: latest

Jina2 says he checks if markupsafe is installed here

My question is: how do I really know that it works? I pasted a bunch of html through my jinja form and it didn't slip away. In short, I read the documents and cannot find a clear answer to what markupsafe does and why I need it. The only piece of information that I have is that jinja2 searches for it and makes jinja faster. I don't know if this really works.

+3
source share
1 answer

AFAIK markupsafe jinja2, . , , , - . .:-) app.yaml .

, jinja2 , autoescape , :

env = jinja2.Environment(
  loader=jinja2.FileSystemLoader(os.path.dirname(__file__)),
  autoescape=True)
+9

All Articles