Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Validated HTML #954

Closed
wants to merge 1 commit into from

2 participants

@madflow

Small documentation fixes

@mitsuhiko
Owner

The HTML already validated before. The changes are unnecessary and just make it harder to read.

@mitsuhiko mitsuhiko closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 16, 2014
  1. @madflow

    Validated HTML

    madflow authored
This page is out of date. Refresh to see the latest.
Showing with 22 additions and 16 deletions.
  1. +22 −16 docs/tutorial/templates.rst
View
38 docs/tutorial/templates.rst
@@ -35,22 +35,28 @@ the session:
.. sourcecode:: html+jinja
<!doctype html>
- <title>Flaskr</title>
- <link rel=stylesheet type=text/css href="{{ url_for('static', filename='style.css') }}">
- <div class=page>
- <h1>Flaskr</h1>
- <div class=metanav>
- {% if not session.logged_in %}
- <a href="{{ url_for('login') }}">log in</a>
- {% else %}
- <a href="{{ url_for('logout') }}">log out</a>
- {% endif %}
- </div>
- {% for message in get_flashed_messages() %}
- <div class=flash>{{ message }}</div>
- {% endfor %}
- {% block body %}{% endblock %}
- </div>
+ <html>
+ <head>
+ <title>Flaskr</title>
+ <link rel=stylesheet type=text/css href="{{ url_for('static', filename='style.css') }}">
+ </head>
+ <body>
+ <div class=page>
+ <h1>Flaskr</h1>
+ <div class=metanav>
+ {% if not session.logged_in %}
+ <a href="{{ url_for('login') }}">log in</a>
+ {% else %}
+ <a href="{{ url_for('logout') }}">log out</a>
+ {% endif %}
+ </div>
+ {% for message in get_flashed_messages() %}
+ <div class=flash>{{ message }}</div>
+ {% endfor %}
+ {% block body %}{% endblock %}
+ </div>
+ </body>
+ </html>
show_entries.html
-----------------
Something went wrong with that request. Please try again.