From 522001fdbb2b30bdb06f6d2d1a8927491c86eb16 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 25 Mar 2010 12:09:01 +0100 Subject: [PATCH] added a note about the twig extensions repository in the doc --- doc/02-Twig-for-Template-Designers.markdown | 7 +++++++ doc/04-Extending-Twig.markdown | 4 ++++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/doc/02-Twig-for-Template-Designers.markdown b/doc/02-Twig-for-Template-Designers.markdown index 00becdc..7f780c2 100644 --- a/doc/02-Twig-for-Template-Designers.markdown +++ b/doc/02-Twig-for-Template-Designers.markdown @@ -1063,3 +1063,10 @@ with automatic escaping enabled this variable will not be escaped. {% autoescape on } {{ var|safe }} {# var won't be escaped #} {% autoescape off %} + +Extensions +---------- + +Twig can be easily extended. If you are looking for new tags or filters, have +a look at the Twig official extension repository: +http://github.com/fabpot/Twig-extensions. diff --git a/doc/04-Extending-Twig.markdown b/doc/04-Extending-Twig.markdown index 60bce0c..669c51c 100644 --- a/doc/04-Extending-Twig.markdown +++ b/doc/04-Extending-Twig.markdown @@ -9,6 +9,10 @@ support for internationalization. Most of the time, it is useful to create a single extension for your project, to host all the specific tags and filters you want to add to Twig. +>**NOTE** +>Before writing your own extensions, have a look at the Twig official extension +>repository: http://github.com/fabpot/Twig-extensions. + Anatomy of an Extension ----------------------- -- 1.7.2.5