Skip to content

use html+twig instead of twig for some examples #11372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doctrine/registration_form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ register.html.twig

The template renders the form:

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

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

Expand Down
2 changes: 1 addition & 1 deletion form/form_customization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ This test will check if the current choice is equal to the ``selected_value``
or if the current choice is in the array (when ``selected_value`` is an
array).

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

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

Expand Down
4 changes: 2 additions & 2 deletions quick_tour/flex_recipes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Thanks to Flex, after one command, you can start using Twig immediately:
By extending ``AbstractController``, you now have access to a number of shortcut
methods and tools, like ``render()``. Create the new template:

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

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

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

{# templates/default/index.html.twig #}
{% extends 'base.html.twig' %}
Expand Down
2 changes: 1 addition & 1 deletion quick_tour/the_architecture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ that extends ``AbstractExtension``::

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

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

{# templates/default/index.html.twig #}
{# Will print something like "Hey Symfony!" #}
Expand Down
2 changes: 1 addition & 1 deletion security/csrf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Consider a simple HTML form created to allow deleting items. First, use the
:ref:`csrf_token() Twig function <reference-twig-function-csrf-token>` to
generate a CSRF token in the template and store it as a hidden form field:

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

<form action="{{ url('admin_post_delete', { id: post.id }) }}" method="post">
{# the argument of csrf_token() is an arbitrary string used to generate the token #}
Expand Down
2 changes: 1 addition & 1 deletion security/form_login_setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Edit the ``security.yml`` file in order to allow access for anyone to the
**Step 2.** The template has very little to do with security: it just generates
a traditional HTML form that submits to ``/login``:

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

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

Expand Down