{% extends "base.html" %} {% block content %}
This is a very simple dynamic web application built using Python and the Flask web framework.
Why not try adding the following route to your Python code?
@app.route('/hello/<name>')
def greet(name='Stranger'):
return render_template("greeting.html", name=name)
Now add the following template with the filename, "greeting.html".
{% extends "base.html" %}
{% block content %}
<p>Hello {{name}}, how are you?</p>
{% endblock %}
Once you've done that, go visit /hello/yourname (but replace "yourname" in the address bar with, you know, your actual name). :-)