2012-03-01 02:07:26 -06:00
|
|
|
<!doctype html>
|
|
|
|
|
<title>Simple Page Blueprint</title>
|
|
|
|
|
<div class=page>
|
|
|
|
|
<h1>This is blueprint example</h1>
|
|
|
|
|
<p>
|
2012-12-19 15:46:18 +01:00
|
|
|
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><a href="{{ url_for('simple_page.show', page='world') }}">/world</a>
|
|
|
|
|
</ul>
|
2012-03-01 02:07:26 -06:00
|
|
|
<p>
|
2012-12-19 15:46:18 +01:00
|
|
|
Also you can register the same blueprint under another path
|
|
|
|
|
<ul>
|
|
|
|
|
<li><a href="/pages/hello">/pages/hello</a>
|
|
|
|
|
<li><a href="/pages/world">/pages/world</a>
|
|
|
|
|
</ul>
|
2012-03-01 02:07:26 -06:00
|
|
|
|
2012-12-19 15:46:18 +01:00
|
|
|
{% block body %}{% endblock %}
|
|
|
|
|
</div>
|