From 266ee5989a1a851a780b6db1050343ea4f8070d4 Mon Sep 17 00:00:00 2001 From: debrice Date: Sat, 4 Feb 2012 11:56:52 -0800 Subject: [PATCH] Updated Large app how to (markdown) --- Large-app-how-to.md | 59 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/Large-app-how-to.md b/Large-app-how-to.md index 59e223b..d4656dc 100644 --- a/Large-app-how-to.md +++ b/Large-app-how-to.md @@ -233,12 +233,68 @@ The view is where we'll declare our Blueprint. Using url_prefix will prefix ever ## First template +Jinja is integrated within Flask. One of the great feature of Jinja is the inheritance and the logic available (conditional structure, loop, context modification...). We'll create a `base.html` template from which we'll inherit from on each of our template. You can even have more than 1 inheritance (like having your template inheriting from twocolumn.html template which itself inherit from main.html) + + + + {% block title %}My Site{% endblock %} + {% block css %} + + + {% endblock %} + {% block script %} + + {% endblock %} + + +
{% block content %}{% endblock%}
+