From 468d17c1bc84e827ca28179785ab281da13045ec Mon Sep 17 00:00:00 2001 From: Brian Brooks Date: Sat, 29 Jun 2013 13:55:31 -0700 Subject: [PATCH] Add a `/app/templates/users/profile.html` --- Large-app-how-to.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Large-app-how-to.md b/Large-app-how-to.md index 56000b5..ef2abc5 100644 --- a/Large-app-how-to.md +++ b/Large-app-how-to.md @@ -327,8 +327,8 @@ Jinja is integrated within Flask. One of the great features of Jinja is the inhe {% endfor %} -
{% block content %}{% endblock%}
- +
{% block content %}{% endblock %}
+ ``` @@ -386,7 +386,16 @@ Those templates will use a macro to automate the construction of html fields. Th {% endmacro %} ``` - + +Finally, a simple `/app/templates/users/profile.html`: + +```jinja + {% extends "base.html" %} + {% block content %} + Hi {{ user.name }}! + {% endblock %} +``` + ## Setting up the app Here is the `/app/__init__.py` :