Jinja2 Templates

In this lesson, we will learn about dynamic templates and Jinja’s templating engine.

Introduction

In this lesson, we will take a look at the concept of dynamic templates. We will also learn how to serve dynamic content in our Flask application.

Dynamic templates

Consider that if we are making an application with multiple users, such as a social media application, each user will have a unique profile and unique information associated with them. It is the job of the web application to serve a unique template containing the content corresponding to the user logged in.

Get hands-on with 1200+ tech skills courses.