Jinja is a feature-rich templating engine packaged with the Flask web framework. But you can also use Jinja independently of Flask to create templates that you can programmatically fill with content.
In this video course, you learned how to:
- Install the Jinja template engine
- Create your first Jinja template
- Render a Jinja template in Flask
- Use
for
loops and conditional statements with Jinja - Nest Jinja templates
- Modify variables in Jinja with filters
- Use macros to add functionality to your front end
With this knowledge, you’re ready to render HTML content from your favorite web framework. How do you use Jinja templating in your projects? Share your ideas in the discussion above!
For further investigation, check out: