Python Flask Basics Templates and Static Files Template Inheritance

layout.html

help with html

flask_app.py
from flask import Flask
from flask import render_template

app = Flask(__name__)


@app.route('/')
def index():
    return render_template('index.html')
templates/index.html
<!doctype html>
<html>
<head><title>Homepage</title></head>
<body>
<h1>Smells Like Bakin'!</h1>
<p>Welcome to my bakery web site!</p>
</body>
</html>
templates/layout.html
<!doctype html>
<html>
  <head>
    <title>{% block title %}{% endblock %} </title>
  </head>
  <body> <h1>{% block content % }{% block endblock %}</h1>
  </body>
</html>