Skip to content

Commit d8dc6d7

Browse files
committed
minor #14822 [Mailer] Update Twig namespace (sebpacz)
This PR was merged into the 5.1 branch. Discussion ---------- [Mailer] Update Twig namespace The examples shown in the "Using External CSS Files" section use/define a Twig namespace called styles, not css. I checked git history and branch 4.4 doesn't have this issue. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases 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 `5.x` for features of unreleased versions). --> Commits ------- 8961ebd [Mailer] Update Twig namespace
2 parents 8f90add + 8961ebd commit d8dc6d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mailer.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ arguments to the filter:
663663

664664
You can pass unlimited number of arguments to ``inline_css()`` to load multiple
665665
CSS files. For this example to work, you also need to define a new Twig namespace
666-
called ``css`` that points to the directory where ``email.css`` lives:
666+
called ``styles`` that points to the directory where ``email.css`` lives:
667667

668668
.. _mailer-css-namespace:
669669

@@ -786,11 +786,11 @@ You can combine all filters to create complex email messages:
786786

787787
.. code-block:: twig
788788
789-
{% apply inky_to_html|inline_css(source('@css/foundation-emails.css')) %}
789+
{% apply inky_to_html|inline_css(source('@styles/foundation-emails.css')) %}
790790
{# ... #}
791791
{% endapply %}
792792
793-
This makes use of the :ref:`css Twig namespace <mailer-css-namespace>` we created
793+
This makes use of the :ref:`styles Twig namespace <mailer-css-namespace>` we created
794794
earlier. You could, for example, `download the foundation-emails.css file`_
795795
directly from GitHub and save it in ``assets/styles``.
796796

0 commit comments

Comments
 (0)