Skip to content

Commit da2497d

Browse files
committed
#505: fix several typos in the templating documentation book chapter
1 parent 7a91de3 commit da2497d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

book/templating.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ template - a text file parsed by PHP that contains a mix of text and PHP code::
4646

4747
.. index:: Twig; Introduction
4848

49-
But Symfony2 packages an even more powerful templating language called `Twig`_
49+
But Symfony2 packages an even more powerful templating language called `Twig`_.
5050
Twig allows you to write concise, readable templates that are more friendly
5151
to web designers and, in several ways, more powerful than PHP templates:
5252

@@ -68,7 +68,7 @@ to web designers and, in several ways, more powerful than PHP templates:
6868
</body>
6969
</html>
7070

71-
Twig contains defines two types of special syntax:
71+
Twig defines two types of special syntax:
7272

7373
* ``{{ ... }}``: "Says something": prints a variable or the result of an
7474
expression to the template;
@@ -151,7 +151,7 @@ environment, such as ``dev`` or ``prod``) and in some cases can be useful
151151
while debugging. See :ref:`environments-summary` for more information on
152152
environments.
153153

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
155155
template will be automatically recompiled when changes are made to it. This
156156
means that during development you can happily make changes to a Twig template
157157
and instantly see the changes without needing to worry about clearing any
@@ -361,12 +361,12 @@ Template Naming and Locations
361361

362362
By default, templates can live in two different locations:
363363

364-
* ``app/Resources/views/`` The applications ``views`` directory can contain
364+
* ``app/Resources/views/``: The applications ``views`` directory can contain
365365
application-wide base templates (i.e. your application's layouts) as well as
366366
templates that override bundle templates (see
367367
:ref:`overriding-bundle-templates`);
368368

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
370370
``Resources/views`` directory (and subdirectories). The majority of templates
371371
will live inside a bundle.
372372

@@ -754,7 +754,7 @@ Linking to Assets
754754
~~~~~~~~~~~~~~~~~
755755

756756
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
758758
(e.g. ``/images/logo.png``), but Symfony2 provides a more dynamic option
759759
via the ``assets`` Twig function:
760760

@@ -927,7 +927,7 @@ Overriding Bundle Templates
927927

928928
The Symfony2 community prides itself on creating and maintaining high quality
929929
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
931931
and customize one or more of its templates.
932932

933933
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
11041104
HTML code. By default, Twig will escape the article body. To render it normally,
11051105
add the ``raw`` filter: ``{{ article.body | raw }}``.
11061106

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
11081108
for an entire template. For more information, see `Output Escaping`_ in
11091109
the Twig documentation.
11101110

0 commit comments

Comments
 (0)