Skip to content

js -> javascript & jinja -> twig code blocks #11382

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 frontend/encore/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Creating the webpack.config.js File
Next, create a new ``webpack.config.js`` file at the root of your project. This
is the main config file for both Webpack and Webpack Encore:

.. code-block:: js
.. code-block:: javascript

var Encore = require('@symfony/webpack-encore');

Expand Down
10 changes: 5 additions & 5 deletions reference/twig_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ information in :ref:`templating-pages`.
absolute_url
~~~~~~~~~~~~

.. code-block:: jinja
.. code-block:: twig

{{ absolute_url(path) }}

Expand All @@ -388,7 +388,7 @@ Returns the absolute URL from the passed relative path. For example, assume
you're on the following page in your app:
``http://example.com/products/hover-board``.

.. code-block:: jinja
.. code-block:: twig

{{ absolute_url('/human.txt') }}
{# http://example.com/human.txt #}
Expand All @@ -399,7 +399,7 @@ you're on the following page in your app:
relative_path
~~~~~~~~~~~~~

.. code-block:: jinja
.. code-block:: twig

{{ relative_path(path) }}

Expand All @@ -410,7 +410,7 @@ Returns the relative path from the passed absolute URL. For example, assume
you're on the following page in your app:
``http://example.com/products/hover-board``.

.. code-block:: jinja
.. code-block:: twig

{{ relative_path('http://example.com/human.txt') }}
{# ../human.txt #}
Expand Down Expand Up @@ -704,7 +704,7 @@ This will set the default domain in the current template.
stopwatch
~~~~~~~~~

.. code-block:: jinja
.. code-block:: twig

{% stopwatch 'name' %}...{% endstopwatch %}

Expand Down
4 changes: 2 additions & 2 deletions translation/debug.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ command helps you to find these missing or unused translation messages.
Thanks to the messages extractors, the command will detect the translation
tag or filter usages in Twig templates:

.. code-block:: jinja
.. code-block:: twig

{% trans %}Symfony is great{% endtrans %}

Expand All @@ -37,7 +37,7 @@ It will also detect the following translator usages in PHP templates::
or expressions are not detected in templates, which means this example
won't be analyzed:

.. code-block:: jinja
.. code-block:: twig

{% set message = 'Symfony is great' %}
{{ message|trans }}
Expand Down