forked from orbit-oss/flask
Removed unnecessary end-tags and fixed some broken html
This commit is contained in:
parent
823bebf13a
commit
61d43c7f12
5 changed files with 20 additions and 26 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
{% extends "pages/layout.html" %}
|
{% extends "pages/layout.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
Hello
|
Hello
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{% extends "pages/layout.html" %}
|
{% extends "pages/layout.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
Blueprint example page
|
Blueprint example page
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -3,23 +3,18 @@
|
||||||
<div class=page>
|
<div class=page>
|
||||||
<h1>This is blueprint example</h1>
|
<h1>This is blueprint example</h1>
|
||||||
<p>
|
<p>
|
||||||
A simple page blueprint is registered under / and /pages<br/>
|
A simple page blueprint is registered under / and /pages
|
||||||
you can access it using this urls:
|
you can access it using this urls:
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="{{ url_for('simple_page.show', page='hello') }}">/hello</a></li>
|
<li><a href="{{ url_for('simple_page.show', page='hello') }}">/hello</a>
|
||||||
<li><a href="{{ url_for('simple_page.show', page='world') }}">/world</a></li>
|
<li><a href="{{ url_for('simple_page.show', page='world') }}">/world</a>
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
|
||||||
<p>
|
<p>
|
||||||
Also you can register the same blueprint under another path
|
Also you can register the same blueprint under another path
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/pages/hello">/pages/hello</a></li>
|
<li><a href="/pages/hello">/pages/hello</a>
|
||||||
<li><a href="/pages/world">/pages/world</a></li>
|
<li><a href="/pages/world">/pages/world</a>
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
{% block body %}{% endblock %}
|
||||||
{% block body %}
|
</div>
|
||||||
{% endblock %}
|
|
||||||
</div>
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{% extends "pages/layout.html" %}
|
{% extends "pages/layout.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
World
|
World
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "layout.html" %}
|
{% extends "layout.html" %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<h2>Login</h2>
|
<h2>Login</h2>
|
||||||
{% if error %}<p class=error><strong>Error:</strong> {{ error }}</p>{% endif %}
|
{% if error %}<p class=error><strong>Error:</strong> {{ error }}{% endif %}
|
||||||
<form action="{{ url_for('login') }}" method=post>
|
<form action="{{ url_for('login') }}" method=post>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Username:
|
<dt>Username:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue