Skip to content

Commit a461f58

Browse files
committed
use html+twig instead of twig for some examples
1 parent 931cd65 commit a461f58

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

doctrine/registration_form.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ register.html.twig
185185

186186
The template renders the form:
187187

188-
.. code-block:: twig
188+
.. code-block:: html+twig
189189

190190
{% extends 'base.html.twig' %}
191191

form/form_customization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ This test will check if the current choice is equal to the ``selected_value``
327327
or if the current choice is in the array (when ``selected_value`` is an
328328
array).
329329

330-
.. code-block:: twig
330+
.. code-block:: html+twig
331331

332332
<option {% if choice is selectedchoice(value) %}selected="selected"{% endif %} ...>
333333

quick_tour/flex_recipes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Thanks to Flex, after one command, you can start using Twig immediately:
100100
By extending ``AbstractController``, you now have access to a number of shortcut
101101
methods and tools, like ``render()``. Create the new template:
102102

103-
.. code-block:: twig
103+
.. code-block:: html+twig
104104

105105
{# templates/default/index.html.twig #}
106106
<h1>Hello {{ name }}</h1>
@@ -112,7 +112,7 @@ its syntax and power later.
112112
But, right now, the page *only* contains the ``h1`` tag. To give it an HTML layout,
113113
extend ``base.html.twig``:
114114

115-
.. code-block:: twig
115+
.. code-block:: html+twig
116116

117117
{# templates/default/index.html.twig #}
118118
{% extends 'base.html.twig' %}

quick_tour/the_architecture.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ that extends ``AbstractExtension``::
200200

201201
After creating just *one* file, you can use this immediately:
202202

203-
.. code-block:: twig
203+
.. code-block:: html+twig
204204

205205
{# templates/default/index.html.twig #}
206206
{# Will print something like "Hey Symfony!" #}

security/csrf.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Consider a simple HTML form created to allow deleting items. First, use the
128128
:ref:`csrf_token() Twig function <reference-twig-function-csrf-token>` to
129129
generate a CSRF token in the template and store it as a hidden form field:
130130

131-
.. code-block:: twig
131+
.. code-block:: html+twig
132132

133133
<form action="{{ url('admin_post_delete', { id: post.id }) }}" method="post">
134134
{# the argument of csrf_token() is an arbitrary string used to generate the token #}

security/form_login_setup.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Edit the ``security.yml`` file in order to allow access for anyone to the
122122
**Step 2.** The template has very little to do with security: it just generates
123123
a traditional HTML form that submits to ``/login``:
124124

125-
.. code-block:: twig
125+
.. code-block:: html+twig
126126

127127
{% extends 'base.html.twig' %}
128128

0 commit comments

Comments
 (0)