
In this article, we have explored the Jinja Template. Jinja is a modern, designer-friendly templating language for python, modeled after django templates and is widely used for execution.
In a template, the variables can be replaced by placing relevant values.
Example:
{{ fruit }} is the national fruit of {{ country }}
Fruit: mango and country: india
Mango is the national fruit of india
Template engines are more often used in web apps.
An HTML example:
{{title}}{{header}}
{{body}}
I ...
Published on September 13, 2021 11:21