What is Jinja2 in the context of Flask?

What is Jinja2 in the context of Flask?

a) A database management system
b) A Python package for handling HTTP requests
c) A templating engine for rendering HTML templates
d) A Flask extension for adding security features

Answer:

c) A templating engine for rendering HTML templates

Explanation:

Jinja2 is the templating engine used by Flask to render dynamic HTML templates, allowing Python code to be embedded within HTML.

Reference:

Flask Quiz – MCQ Questions and Answers

Scroll to Top