|
|
|
@ -3,23 +3,18 @@
|
|
|
|
|
<div class=page> |
|
|
|
|
<h1>This is blueprint example</h1> |
|
|
|
|
<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: |
|
|
|
|
<ul> |
|
|
|
|
<li><a href="{{ url_for('simple_page.show', page='hello') }}">/hello</a></li> |
|
|
|
|
<li><a href="{{ url_for('simple_page.show', page='world') }}">/world</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> |
|
|
|
|
</ul> |
|
|
|
|
</p> |
|
|
|
|
<p> |
|
|
|
|
Also you can register the same blueprint under another path |
|
|
|
|
<ul> |
|
|
|
|
<li><a href="/pages/hello">/pages/hello</a></li> |
|
|
|
|
<li><a href="/pages/world">/pages/world</a></li> |
|
|
|
|
<li><a href="/pages/hello">/pages/hello</a> |
|
|
|
|
<li><a href="/pages/world">/pages/world</a> |
|
|
|
|
</ul> |
|
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% block body %} |
|
|
|
|
{% endblock %} |
|
|
|
|
{% block body %}{% endblock %} |
|
|
|
|
</div> |