Jinja Template Inheritance
Jinja Template Inheritance n n Template inheritance allows you to create a reusable base layout that child templates can extend and override specific content blocks within. nn n n Example: base.html and child.html n base.html (the skeleton) n <!DOCTYPE html>n<html lang=”en”>n<head>n <title>{% block title %}{% endblock %} – My Site</title>n</head>n<body>n <div id=”header”>n <h1>My Website</h1>n </div>n…
