This is an old revision of the document!
First, download the lab archive.
We now want to move the design from last time (a static html
file) to use Flask Jinja2-based template rendering.
For this, you must:
templates/_base.html
(base template) and templates/index.html
(child);_base.html
template should contain the common layout of all pages)!server.py
to call render_template
from router functions to actually serve our new design;second.html
and fill the Flask function to serve it (fill it with whatever content you want, like in the previous lab);