File tree 5 files changed +16
-7
lines changed
5 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1
1
{% extends "layout.html" %}
2
+ {% block title %}
3
+ About us
4
+ {% endblock %}
2
5
{% block content %}
3
- < p > About page for the Flask tutorial.</ p >
6
+ < p > About page for the Visual Studio Code Flask tutorial.</ p >
4
7
{% endblock %}
Original file line number Diff line number Diff line change 1
1
{% extends "layout.html" %}
2
+ {% block title %}
3
+ Contact us
4
+ {% endblock %}
2
5
{% block content %}
3
- < p > Contact page for the Flask tutorial.</ p >
6
+ < p > Contact page for the VIsual Studio Code Flask tutorial.</ p >
4
7
{% endblock %}
Original file line number Diff line number Diff line change 1
1
{% extends "layout.html" %}
2
+ {% block title %}
3
+ Home
4
+ {% endblock %}
2
5
{% block content %}
3
- < p > Home page for the Flask tutorial.</ p >
6
+ < p > Home page for the Visual Studio Code Flask tutorial.</ p >
4
7
{% endblock %}
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< meta charset ="utf-8 " />
5
- < title > {{ title } }</ title >
5
+ < title > {% block title %}{% endblock % }</ title >
6
6
< link rel ="stylesheet " type ="text/css " href ="{{ url_for('static', filename='site.css') }} " />
7
7
</ head >
8
8
Original file line number Diff line number Diff line change 4
4
5
5
@app .route ('/' )
6
6
def home ():
7
- return render_template ("home.html" , title = "Home" )
7
+ return render_template ("home.html" )
8
8
9
9
@app .route ('/about' )
10
10
def about ():
11
- return render_template ("about.html" , title = "About us" )
11
+ return render_template ("about.html" )
12
12
13
13
@app .route ('/contact' )
14
14
def contact ():
15
- return render_template ("contact.html" , title = "Contact us" )
15
+ return render_template ("contact.html" )
16
16
17
17
@app .route ('/hello/<name>' )
18
18
def hello_there (name ):
You can’t perform that action at this time.
0 commit comments