From: Fabien Potencier Date: Thu, 25 Mar 2010 11:09:01 +0000 (+0100) Subject: added a note about the twig extensions repository in the doc X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=522001fdbb2b30bdb06f6d2d1a8927491c86eb16;p=web%2Fkonrad%2Ftwig.git added a note about the twig extensions repository in the doc --- 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 -----------------------