Skip to content

Commit 36aa4aa

Browse files
committed
minor #11382 js -> javascript & jinja -> twig code blocks (OskarStark)
This PR was merged into the 3.4 branch. Discussion ---------- js -> javascript & jinja -> twig code blocks <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- b407409 js -> javascript & jinja -> twig code blocks
2 parents 0964766 + b407409 commit 36aa4aa

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

frontend/encore/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Creating the webpack.config.js File
5151
Next, create a new ``webpack.config.js`` file at the root of your project. This
5252
is the main config file for both Webpack and Webpack Encore:
5353

54-
.. code-block:: js
54+
.. code-block:: javascript
5555
5656
var Encore = require('@symfony/webpack-encore');
5757

reference/twig_reference.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ information in :ref:`templating-pages`.
377377
absolute_url
378378
~~~~~~~~~~~~
379379

380-
.. code-block:: jinja
380+
.. code-block:: twig
381381
382382
{{ absolute_url(path) }}
383383
@@ -388,7 +388,7 @@ Returns the absolute URL from the passed relative path. For example, assume
388388
you're on the following page in your app:
389389
``http://example.com/products/hover-board``.
390390

391-
.. code-block:: jinja
391+
.. code-block:: twig
392392
393393
{{ absolute_url('/human.txt') }}
394394
{# http://example.com/human.txt #}
@@ -399,7 +399,7 @@ you're on the following page in your app:
399399
relative_path
400400
~~~~~~~~~~~~~
401401

402-
.. code-block:: jinja
402+
.. code-block:: twig
403403
404404
{{ relative_path(path) }}
405405
@@ -410,7 +410,7 @@ Returns the relative path from the passed absolute URL. For example, assume
410410
you're on the following page in your app:
411411
``http://example.com/products/hover-board``.
412412

413-
.. code-block:: jinja
413+
.. code-block:: twig
414414
415415
{{ relative_path('http://example.com/human.txt') }}
416416
{# ../human.txt #}
@@ -704,7 +704,7 @@ This will set the default domain in the current template.
704704
stopwatch
705705
~~~~~~~~~
706706

707-
.. code-block:: jinja
707+
.. code-block:: twig
708708
709709
{% stopwatch 'name' %}...{% endstopwatch %}
710710

translation/debug.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ command helps you to find these missing or unused translation messages.
1313
Thanks to the messages extractors, the command will detect the translation
1414
tag or filter usages in Twig templates:
1515

16-
.. code-block:: jinja
16+
.. code-block:: twig
1717
1818
{% trans %}Symfony is great{% endtrans %}
1919
@@ -37,7 +37,7 @@ It will also detect the following translator usages in PHP templates::
3737
or expressions are not detected in templates, which means this example
3838
won't be analyzed:
3939

40-
.. code-block:: jinja
40+
.. code-block:: twig
4141
4242
{% set message = 'Symfony is great' %}
4343
{{ message|trans }}

0 commit comments

Comments
 (0)