We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12923f5 commit 3efe4dcCopy full SHA for 3efe4dc
book/templating.rst
@@ -93,6 +93,11 @@ it:
93
Twig comes with a long list of `tags`_ and `filters`_ that are available
94
by default. You can even `add your own extensions`_ to Twig as needed.
95
96
+.. tip::
97
+
98
+ Registering a Twig extension is an easy as creating a new service and tag
99
+ it with ``twig.extension`` :ref:`tag<book-service-container-tags>`.
100
101
As you'll see throughout the documentation, Twig also supports functions
102
and new functions can be easily added. For example, the following uses a
103
standard ``if`` tag and the ``cycle`` function to print ten div tags, with
0 commit comments