File tree Expand file tree Collapse file tree 5 files changed +20
-26
lines changed
blueprintexample/simple_page/templates/pages Expand file tree Collapse file tree 5 files changed +20
-26
lines changed Original file line number Diff line number Diff line change 1
1
{% extends "pages/layout.html" %}
2
2
3
3
{% block body %}
4
- Hello
5
- {% endblock %}
4
+ Hello
5
+ {% endblock %}
Original file line number Diff line number Diff line change 1
1
{% extends "pages/layout.html" %}
2
2
3
3
{% block body %}
4
- Blueprint example page
5
- {% endblock %}
4
+ Blueprint example page
5
+ {% endblock %}
Original file line number Diff line number Diff line change 3
3
< div class =page >
4
4
< h1 > This is blueprint example</ h1 >
5
5
< p >
6
- A simple page blueprint is registered under / and /pages< br />
7
- you can access it using this urls:
8
- < ul >
9
- < li > < a href ="{{ url_for('simple_page.show', page='hello') }} "> /hello</ a > </ li >
10
- < li > < a href ="{{ url_for('simple_page.show', page='world') }} "> /world</ a > </ li >
11
- </ ul >
12
- </ p >
6
+ A simple page blueprint is registered under / and /pages
7
+ you can access it using this urls:
8
+ < ul >
9
+ < li > < a href ="{{ url_for('simple_page.show', page='hello') }} "> /hello</ a >
10
+ < li > < a href ="{{ url_for('simple_page.show', page='world') }} "> /world</ a >
11
+ </ ul >
13
12
< p >
14
- Also you can register the same blueprint under another path
15
- < ul >
16
- < li > < a href ="/pages/hello "> /pages/hello</ a > </ li >
17
- < li > < a href ="/pages/world "> /pages/world</ a > </ li >
18
- </ ul >
19
- </ p >
20
-
13
+ Also you can register the same blueprint under another path
14
+ < ul >
15
+ < li > < a href ="/pages/hello "> /pages/hello</ a >
16
+ < li > < a href ="/pages/world "> /pages/world</ a >
17
+ </ ul >
21
18
22
-
23
- {% block body %}
24
- {% endblock %}
25
- </ div >
19
+ {% block body %}{% endblock %}
20
+ </ div >
Original file line number Diff line number Diff line change 1
1
{% extends "pages/layout.html" %}
2
-
3
2
{% block body %}
4
- World
5
- {% endblock %}
3
+ World
4
+ {% endblock %}
Original file line number Diff line number Diff line change 1
1
{% extends "layout.html" %}
2
2
{% block body %}
3
3
< h2 > Login</ h2 >
4
- {% if error %}< p class =error > < strong > Error:</ strong > {{ error }}</ p > {% endif %}
4
+ {% if error %}< p class =error > < strong > Error:</ strong > {{ error }}{% endif %}
5
5
< form action ="{{ url_for('login') }} " method =post >
6
6
< dl >
7
7
< dt > Username:
You can’t perform that action at this time.
0 commit comments