File tree Expand file tree Collapse file tree 5 files changed +16
-7
lines changed
Expand file tree Collapse file tree 5 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 11{% extends "layout.html" %}
2+ {% block title %}
3+ About us
4+ {% endblock %}
25{% block content %}
3- < p > About page for the Flask tutorial.</ p >
6+ < p > About page for the Visual Studio Code Flask tutorial.</ p >
47{% endblock %}
Original file line number Diff line number Diff line change 11{% extends "layout.html" %}
2+ {% block title %}
3+ Contact us
4+ {% endblock %}
25{% block content %}
3- < p > Contact page for the Flask tutorial.</ p >
6+ < p > Contact page for the VIsual Studio Code Flask tutorial.</ p >
47{% endblock %}
Original file line number Diff line number Diff line change 11{% extends "layout.html" %}
2+ {% block title %}
3+ Home
4+ {% endblock %}
25{% block content %}
3- < p > Home page for the Flask tutorial.</ p >
6+ < p > Home page for the Visual Studio Code Flask tutorial.</ p >
47{% endblock %}
Original file line number Diff line number Diff line change 22< html >
33 < head >
44 < meta charset ="utf-8 " />
5- < title > {{ title } }</ title >
5+ < title > {% block title %}{% endblock % }</ title >
66 < link rel ="stylesheet " type ="text/css " href ="{{ url_for('static', filename='site.css') }} " />
77 </ head >
88
Original file line number Diff line number Diff line change 44
55@app .route ('/' )
66def home ():
7- return render_template ("home.html" , title = "Home" )
7+ return render_template ("home.html" )
88
99@app .route ('/about' )
1010def about ():
11- return render_template ("about.html" , title = "About us" )
11+ return render_template ("about.html" )
1212
1313@app .route ('/contact' )
1414def contact ():
15- return render_template ("contact.html" , title = "Contact us" )
15+ return render_template ("contact.html" )
1616
1717@app .route ('/hello/<name>' )
1818def hello_there (name ):
You can’t perform that action at this time.
0 commit comments