Project Challenge: Template Inheritance

In this challenge, we will apply the concept of template inheritance to our project.

Problem statement

There are three templates in our application, and much of their content is redundant. Therefore, in this challenge, your task is the following:

  1. Create a parent template and inherit all other templates from it.
  2. Make sure that all the redundant content is contained by the parent.
  3. Furthermore, you have to make the necessary changes in the child templates so that they can replace the placeholders present in the parent template.

Expected output

The expected output of all endpoints should remain the same as before.

Get hands-on with 1400+ tech skills courses.