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 + style.css #

Get hands-on with 1200+ tech skills courses.