Template Inheritance
In this lesson, we will be learning the method of creating template inheritance with Jinja!
Introduction #
Template inheritance is a compelling feature of Jinja that lets us reuse templates. Consider an example where we have two templates: home.html
and about.html
. Both of these files use the same CSS
file called style.css
.
You can see the files and their outputs below.
home.html
...Access this course and 1400+ top-rated courses and projects.