Skip to content

Commit 61d43c7

Browse files
committed
Removed unnecessary end-tags and fixed some broken html
1 parent 823bebf commit 61d43c7

File tree

5 files changed

+20
-26
lines changed

5 files changed

+20
-26
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends "pages/layout.html" %}
22

33
{% block body %}
4-
Hello
5-
{% endblock %}
4+
Hello
5+
{% endblock %}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends "pages/layout.html" %}
22

33
{% block body %}
4-
Blueprint example page
5-
{% endblock %}
4+
Blueprint example page
5+
{% endblock %}

examples/blueprintexample/simple_page/templates/pages/layout.html

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,18 @@
33
<div class=page>
44
<h1>This is blueprint example</h1>
55
<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>
1312
<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>
2118

22-
23-
{% block body %}
24-
{% endblock %}
25-
</div>
19+
{% block body %}{% endblock %}
20+
</div>
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{% extends "pages/layout.html" %}
2-
32
{% block body %}
4-
World
5-
{% endblock %}
3+
World
4+
{% endblock %}

examples/flaskr/templates/login.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends "layout.html" %}
22
{% block body %}
33
<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 %}
55
<form action="{{ url_for('login') }}" method=post>
66
<dl>
77
<dt>Username:

0 commit comments

Comments
 (0)