Skip to content

Commit b091786

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: Fix autoescape_service example align travis and platform build environments Minor reword of the intro of the routing/conditions article Minor reword for the intro of the Templating article Update LessThan.rst "Basic Usage" part Fix typo minor #7999 Small grammatical improvement (catchamonkey)
2 parents 85b0c79 + 6e60b9e commit b091786

File tree

9 files changed

+25
-27
lines changed

9 files changed

+25
-27
lines changed

.platform.app.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,5 @@ hooks:
5757
export PIP_USER=
5858
pip install pip==9.0.1 wheel==0.29.0
5959
pip install -r _build/.requirements.txt
60+
find .virtualenv -type f -name "*.rst" -delete
6061
make -C _build html

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ sudo: false
66
cache:
77
directories: [$HOME/.cache/pip]
88

9-
install: pip install sphinx~=1.3.0 git+https://github.com/fabpot/sphinx-php.git
9+
install: pip install -r _build/.requirements.txt
1010

11-
script: sphinx-build -nW -c _build/ -b html -d _build/doctrees . _build/html
11+
script: make -C _build SPHINXOPTS=-nW html
1212

1313
branches:
1414
except:

_build/.requirements.txt

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
alabaster==0.7.9
2-
Babel==2.3.4
1+
alabaster==0.7.10
2+
Babel==2.4.0
33
docutils==0.13.1
44
imagesize==0.7.1
5-
Jinja2==2.9.4
6-
MarkupSafe==0.23
5+
Jinja2==2.9.6
6+
MarkupSafe==1.0
77
Pygments==2.2.0
8-
pytz==2016.10
8+
pytz==2017.2
99
requests==2.12.5
1010
six==1.10.0
1111
snowballstemmer==1.2.1
12-
Sphinx==1.5.2
12+
Sphinx==1.3.6
1313
git+https://github.com/fabpot/sphinx-php.git@7312eccce9465640752e51373a480da700e02345#egg_name=sphinx-php
14-

reference/configuration/twig.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ TwigBundle Configuration ("twig")
4444
4545
# The following were added in Symfony 2.3.
4646
# See http://twig.sensiolabs.org/doc/recipes.html#using-the-template-name-to-set-the-default-escaping-strategy
47-
autoescape_service: ~ # Example: '@my_service'
47+
autoescape_service: ~ # Example: 'my_service'
4848
autoescape_service_method: ~ # use in combination with autoescape_service option
4949
base_template_class: ~ # Example: Twig_Template
5050
cache: '%kernel.cache_dir%/twig'

reference/constraints/LessThan.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Basic Usage
2626

2727
The following constraints ensure that:
2828

29-
* the number of ``siblings`` of a ``Person`` is less than or equal to ``5``
30-
* ``age`` is less than``80``
29+
* the number of ``siblings`` of a ``Person`` is less than ``5``
30+
* ``age`` is less than ``80``
3131

3232
.. configuration-block::
3333

reference/twig_reference.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ set for the package and the URL path. More information in
130130
:ref:`templating-assets`. For asset versioning, see
131131
:ref:`reference-framework-assets-version`.
132132

133-
assets_version
133+
asset_version
134134
~~~~~~~~~~~~~~
135135

136136
.. code-block:: twig
137137
138-
{{ assets_version(packageName = null) }}
138+
{{ asset_version(packageName = null) }}
139139
140140
``packageName`` *(optional)*
141141
**type**: ``string`` | ``null`` **default**: ``null``

routing/conditions.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
How to Restrict Route Matching through Conditions
55
=================================================
66

7-
As you've seen, a route can be made to match only certain routing wildcards
8-
(via regular expressions), HTTP methods, or host names. But the routing system
9-
can be extended to have an almost infinite flexibility using ``conditions``:
7+
A route can be made to match only certain routing placeholders (via regular
8+
expressions), HTTP methods, or host names. If you need more flexibility to
9+
define arbitrary matching logic, use the ``conditions`` routing option:
1010

1111
.. configuration-block::
1212

service_container/alias_private.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ However, if a service has been marked as private, you can still alias it
7272
.. note::
7373

7474
Services are by default public, but it's considered a good practice to mark
75-
as much services private as possible.
75+
as many services private as possible.
7676

7777
Aliasing
7878
--------

templating.rst

+7-9
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,19 @@
44
Creating and Using Templates
55
============================
66

7-
As you know, the :doc:`controller </controller>` is responsible for
8-
handling each request that comes into a Symfony application. In reality,
9-
the controller delegates most of the heavy work to other places so that
10-
code can be tested and reused. When a controller needs to generate HTML,
7+
As explained in :doc:`the previous article </controller>`, controllers are
8+
responsible for handling each request that comes into a Symfony application and
9+
the usually end up rendering a template to generate the response contents.
10+
11+
In reality, the controller delegates most of the heavy work to other places so
12+
that code can be tested and reused. When a controller needs to generate HTML,
1113
CSS or any other content, it hands the work off to the templating engine.
14+
1215
In this article, you'll learn how to write powerful templates that can be
1316
used to return content to the user, populate email bodies, and more. You'll
1417
learn shortcuts, clever ways to extend templates and how to reuse template
1518
code.
1619

17-
.. note::
18-
19-
How to render templates is covered in the
20-
:ref:`controller <controller-rendering-templates>` article.
21-
2220
.. index::
2321
single: Templating; What is a template?
2422

0 commit comments

Comments
 (0)