File tree 8 files changed +24
-26
lines changed
8 files changed +24
-26
lines changed Original file line number Diff line number Diff line change 57
57
export PIP_USER=
58
58
pip install pip==9.0.1 wheel==0.29.0
59
59
pip install -r _build/.requirements.txt
60
+ find .virtualenv -type f -name "*.rst" -delete
60
61
make -C _build html
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ sudo: false
6
6
cache :
7
7
directories : [$HOME/.cache/pip]
8
8
9
- install : pip install sphinx~=1.3.0 git+https://github.com/fabpot/sphinx-php.git
9
+ install : pip install -r _build/.requirements.txt
10
10
11
- script : sphinx-build -nW -c _build/ -b html -d _build/doctrees . _build/ html
11
+ script : make -C _build SPHINXOPTS=-nW html
12
12
13
13
branches :
14
14
except :
Original file line number Diff line number Diff line change 1
- alabaster==0.7.9
2
- Babel==2.3.4
1
+ alabaster==0.7.10
2
+ Babel==2.4.0
3
3
docutils==0.13.1
4
4
imagesize==0.7.1
5
- Jinja2==2.9.4
6
- MarkupSafe==0.23
5
+ Jinja2==2.9.6
6
+ MarkupSafe==1.0
7
7
Pygments==2.2.0
8
- pytz==2016.10
8
+ pytz==2017.2
9
9
requests==2.12.5
10
10
six==1.10.0
11
11
snowballstemmer==1.2.1
12
- Sphinx==1.5.2
12
+ Sphinx==1.3.6
13
13
git+https://github.com/fabpot/sphinx-php.git@7312eccce9465640752e51373a480da700e02345#egg_name=sphinx-php
14
-
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ TwigBundle Configuration ("twig")
43
43
autoescape : ~
44
44
45
45
# See http://twig.sensiolabs.org/doc/recipes.html#using-the-template-name-to-set-the-default-escaping-strategy
46
- autoescape_service : ~ # Example: '@ my_service'
46
+ autoescape_service : ~ # Example: 'my_service'
47
47
autoescape_service_method : ~ # use in combination with autoescape_service option
48
48
base_template_class : ~ # Example: Twig_Template
49
49
cache : ' %kernel.cache_dir%/twig'
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ Basic Usage
23
23
24
24
The following constraints ensure that:
25
25
26
- * the number of ``siblings `` of a ``Person `` is less than or equal to ``5 ``
27
- * ``age `` is less than``80``
26
+ * the number of ``siblings `` of a ``Person `` is less than ``5 ``
27
+ * ``age `` is less than ``80 ``
28
28
29
29
.. configuration-block ::
30
30
Original file line number Diff line number Diff line change @@ -126,12 +126,12 @@ set for the package and the URL path. More information in
126
126
:ref: `templating-assets `. For asset versioning, see
127
127
:ref: `reference-framework-assets-version `.
128
128
129
- assets_version
129
+ asset_version
130
130
~~~~~~~~~~~~~~
131
131
132
132
.. code-block :: twig
133
133
134
- {{ assets_version (packageName = null) }}
134
+ {{ asset_version (packageName = null) }}
135
135
136
136
``packageName `` *(optional) *
137
137
**type **: ``string `` | ``null `` **default **: ``null ``
Original file line number Diff line number Diff line change 4
4
How to Restrict Route Matching through Conditions
5
5
=================================================
6
6
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 :
10
10
11
11
.. configuration-block ::
12
12
Original file line number Diff line number Diff line change 4
4
Creating and Using Templates
5
5
============================
6
6
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,
11
13
CSS or any other content, it hands the work off to the templating engine.
14
+
12
15
In this article, you'll learn how to write powerful templates that can be
13
16
used to return content to the user, populate email bodies, and more. You'll
14
17
learn shortcuts, clever ways to extend templates and how to reuse template
15
18
code.
16
19
17
- .. note ::
18
-
19
- How to render templates is covered in the
20
- :ref: `controller <controller-rendering-templates >` article.
21
-
22
20
.. index ::
23
21
single: Templating; What is a template?
24
22
You can’t perform that action at this time.
0 commit comments