diff --git a/flask-40mins.html b/flask-40mins.html index 0ef4d8c..5535cf8 100644 --- a/flask-40mins.html +++ b/flask-40mins.html @@ -574,88 +574,105 @@ STORAGE='/home/jbiason/src/ata/contents' </body> </html> - - - -
-

templates

-

index.html

- -
{% extends "layout.html" %}
-{% block maincontent %}
-    <div class='entry'>
-        {% for entry, text in data %}
-        <a href="{{ url_for('show_entry', entry_name=entry) }}">{{ entry }}</a>
-            {{ text|safe }}
-        {% endfor %}
-    </div>
-{% endblock %}
- - -
- -
-

templates

-

entry.html

- -
{% extends "layout.html" %}
-{% block maincontent %}
-    <div class="entry">
-        <div class="title">{{ entry }}</div>
-        {{ output|safe }}
-    </div>
-{% endblock %}
- - -
- -
-

templates

-

page_not_found.html

- -
{% extends "layout.html" %}
-{% block maincontent %}
-    <h2>Page not found</h2>
-{% endblock %}
- - -
- -
-

templates

-

entry_not_found.html

- -
{% extends "layout.html" %}
-{% block maincontent %}
-    <h2>Entry not found</h2>
-{% endblock %}
- - -
+ + + +
+

templates

+

index.html

+ +
{% extends "layout.html" %}
+	{% block maincontent %}
+		<div class='entry'>
+			{% for entry, text in data %}
+			<a href="{{ url_for('show_entry', entry_name=entry) }}">{{ entry }}</a>
+				{{ text|safe }}
+			{% endfor %}
+		</div>
+	{% endblock %}
+ + +
+ +
+

templates

+

entry.html

+ +
{% extends "layout.html" %}
+	{% block maincontent %}
+		<div class="entry">
+			<div class="title">{{ entry }}</div>
+			{{ output|safe }}
+		</div>
+	{% endblock %}
+ + +
+ +
+

templates

+

page_not_found.html

+ +
{% extends "layout.html" %}
+	{% block maincontent %}
+		<h2>Page not found</h2>
+	{% endblock %}
+ + +
+ +
+

templates

+

entry_not_found.html

+ +
{% extends "layout.html" %}
+	{% block maincontent %}
+		<h2>Entry not found</h2>
+	{% endblock %}
+ + +
+ + +
+
+

Rodando

+

(Dev server)

+ +

+FLASK_APP=ata/main.py flask run
+						
+ +

+export FLASK_RUN=ata/main
+flask run
+						
+
+