@@ -7,16 +7,32 @@ Symfony Twig Extensions
77=======================
88
99Twig is the default template engine for Symfony. By itself, it already contains
10- a lot of built-in functions, filters, tags and tests ( learn more about them
11- from the `Twig Reference `_) .
10+ a lot of built-in functions, filters, tags and tests. You can learn more about
11+ them from the `Twig Reference `_.
1212
13- Symfony adds custom extensions on top of Twig to integrate some components
14- into the Twig templates. The following sections describe the custom
15- :ref: `functions <reference-twig-functions >`, :ref: ` filters < reference-twig-filters >`,
16- :ref: ` tags < reference-twig-tags >` and :ref: ` tests < reference-twig-tests >`
17- that are available when using the Symfony Core Framework .
13+ The Symfony framework adds quite a few extra :ref: ` functions < reference-twig-functions >`,
14+ :ref: ` filters < reference-twig-filters >`, :ref: ` tags < reference-twig-tags >`
15+ and :ref: `tests <reference-twig-tests >` to seamlessly integrate the
16+ various Symfony components with Twig templates. The following sections
17+ describe these extra features .
1818
19- There may also be tags in bundles you use that aren't listed here.
19+ .. tip ::
20+
21+ Technically, most of the extensions live in the `Twig Bridge `_. That code
22+ might give you some ideas when you need to write your own Twig extension
23+ as described in :doc: `/templating/twig_extension `.
24+
25+ .. note ::
26+
27+ This reference only covers the Twig extensions provided by the Symfony
28+ framework. You are probably using some other bundles as well, and
29+ those might come with their own extensions not covered here.
30+
31+ .. tip ::
32+
33+ The `Twig Extensions repository `_ contains some additional Twig extensions
34+ that do not belong to the Twig core, so you might want to have a look at
35+ the `Twig Extensions documentation `_.
2036
2137.. _reference-twig-functions :
2238
@@ -761,12 +777,11 @@ Symfony Standard Edition Extensions
761777The Symfony Standard Edition adds some bundles to the Symfony Core Framework.
762778Those bundles can have other Twig extensions:
763779
764- * **Twig Extensions ** includes some interesting extensions that do not belong
765- to the Twig core. You can read more in `the official Twig Extensions
766- documentation `_;
767780* **Assetic ** adds the ``{% stylesheets %} ``, ``{% javascripts %} `` and
768781 ``{% image %} `` tags. You can read more about them in
769782 :doc: `the Assetic Documentation </assetic/asset_management >`.
770783
771784.. _`Twig Reference` : http://twig.sensiolabs.org/documentation#reference
772- .. _`the official Twig Extensions documentation` : http://twig-extensions.readthedocs.io/
785+ .. _`Twig Extensions repository` : https://github.com/twigphp/Twig-extensions
786+ .. _`Twig Extensions documentation` : http://twig-extensions.readthedocs.io/en/latest/
787+ .. _`Twig Bridge` : https://github.com/symfony/symfony/tree/master/src/Symfony/Bridge/Twig/Extension
0 commit comments