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

21 lines
604 B
HTML
Raw Normal View History

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>
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>
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
{% block body %}{% endblock %}
</div>