Skip to content

Commit a6a60ff

Browse files
committed
capitalize nouns in titles
1 parent 1543918 commit a6a60ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cookbook/templating/twig_extension.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. index::
22
single: Twig extensions
33

4-
How to write a custom Twig extension
4+
How to write a custom Twig Extension
55
====================================
66

77
The main motivation for writing an extension is to move often used code
@@ -17,7 +17,7 @@ your code faster.
1717

1818
Before writing your own extensions, have a look at the `Twig official extension repository`_.
1919

20-
Create the extension class
20+
Create the Extension Class
2121
--------------------------
2222

2323
To get your custom functionality you must first create a Twig Extension class.
@@ -58,7 +58,7 @@ As an example we will create a price filter to format a given number into price:
5858

5959
Along with custom filters, you can also add custom `functions` and register `global variables`.
6060

61-
Register extension as a service
61+
Register an Extension as a Service
6262
-------------------------------
6363

6464
Now you must let Service Container know about your newly created Twig Extension:
@@ -99,7 +99,7 @@ Now you must let Service Container know about your newly created Twig Extension:
9999
or a **ScopeWideningInjectionException** if any services
100100
(or your Twig Extension in this case) are dependent on the request service.
101101

102-
Using the custom extension
102+
Using the custom Extension
103103
--------------------------
104104

105105
Using your newly created Twig Extension is no different than any other:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy