From fc99ceae6d12bd80b7bc090fb744ec2669af55e0 Mon Sep 17 00:00:00 2001 From: Kevin Bond Date: Mon, 20 Feb 2012 09:40:05 -0500 Subject: [PATCH 1/2] [book][templating] added hinclude.js docs --- book/templating.rst | 71 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 63 insertions(+), 8 deletions(-) diff --git a/book/templating.rst b/book/templating.rst index 3b005642ea5..c038fb2e028 100644 --- a/book/templating.rst +++ b/book/templating.rst @@ -122,16 +122,16 @@ Throughout this chapter, template examples will be shown in both Twig and PHP. not program logic. The more you use Twig, the more you'll appreciate and benefit from this distinction. And of course, you'll be loved by web designers everywhere. - + Twig can also do things that PHP can't, such as true template inheritance (Twig templates compile down to PHP classes that inherit from each other), whitespace control, sandboxing, and the inclusion of custom functions and filters that only affect templates. Twig contains little features that make writing templates easier and more concise. Take the following example, which combines a loop with a logical ``if`` statement: - + .. code-block:: html+jinja - +