@@ -46,7 +46,7 @@ template - a text file parsed by PHP that contains a mix of text and PHP code::
46
46
47
47
.. index :: Twig; Introduction
48
48
49
- But Symfony2 packages an even more powerful templating language called `Twig `_
49
+ But Symfony2 packages an even more powerful templating language called `Twig `_.
50
50
Twig allows you to write concise, readable templates that are more friendly
51
51
to web designers and, in several ways, more powerful than PHP templates:
52
52
@@ -68,7 +68,7 @@ to web designers and, in several ways, more powerful than PHP templates:
68
68
</body>
69
69
</html>
70
70
71
- Twig contains defines two types of special syntax:
71
+ Twig defines two types of special syntax:
72
72
73
73
* ``{{ ... }} ``: "Says something": prints a variable or the result of an
74
74
expression to the template;
@@ -151,7 +151,7 @@ environment, such as ``dev`` or ``prod``) and in some cases can be useful
151
151
while debugging. See :ref: `environments-summary ` for more information on
152
152
environments.
153
153
154
- When ``debug `` mode is enabled (common in the ``dev `` environment) a Twig
154
+ When ``debug `` mode is enabled (common in the ``dev `` environment), a Twig
155
155
template will be automatically recompiled when changes are made to it. This
156
156
means that during development you can happily make changes to a Twig template
157
157
and instantly see the changes without needing to worry about clearing any
@@ -361,12 +361,12 @@ Template Naming and Locations
361
361
362
362
By default, templates can live in two different locations:
363
363
364
- * ``app/Resources/views/ `` The applications ``views `` directory can contain
364
+ * ``app/Resources/views/ ``: The applications ``views `` directory can contain
365
365
application-wide base templates (i.e. your application's layouts) as well as
366
366
templates that override bundle templates (see
367
367
:ref: `overriding-bundle-templates `);
368
368
369
- * ``path/to/bundle/Resources/views/ `` Each bundle houses its templates in its
369
+ * ``path/to/bundle/Resources/views/ ``: Each bundle houses its templates in its
370
370
``Resources/views `` directory (and subdirectories). The majority of templates
371
371
will live inside a bundle.
372
372
@@ -754,7 +754,7 @@ Linking to Assets
754
754
~~~~~~~~~~~~~~~~~
755
755
756
756
Templates also commonly refer to images, Javascript, stylesheets and other
757
- assets. Of course you could hard-coded these the path to these assets
757
+ assets. Of course you could hard-code the path to these assets
758
758
(e.g. ``/images/logo.png ``), but Symfony2 provides a more dynamic option
759
759
via the ``assets `` Twig function:
760
760
@@ -927,7 +927,7 @@ Overriding Bundle Templates
927
927
928
928
The Symfony2 community prides itself on creating and maintaining high quality
929
929
bundles (see `Symfony2Bundles.org `_) for a large number of different features.
930
- Once you use a bundle a third-party bundle, you'll likely need to override
930
+ Once you use a third-party bundle, you'll likely need to override
931
931
and customize one or more of its templates.
932
932
933
933
Suppose you've included the imaginary open-source ``AcmeBlogBundle `` in your
@@ -1104,7 +1104,7 @@ Suppose that administrative users are able to write articles that contain
1104
1104
HTML code. By default, Twig will escape the article body. To render it normally,
1105
1105
add the ``raw `` filter: ``{{ article.body | raw }} ``.
1106
1106
1107
- You can also to disable output escaping inside a ``{% block %} `` area or
1107
+ You can also disable output escaping inside a ``{% block %} `` area or
1108
1108
for an entire template. For more information, see `Output Escaping `_ in
1109
1109
the Twig documentation.
1110
1110
0 commit comments