From 6db1feb0b1e1d4b93beba89e796fbe2530fc7378 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Thu, 17 Oct 2019 21:48:25 -0400 Subject: [PATCH] Showing new -extra Twig extension repos --- mailer.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mailer.rst b/mailer.rst index c2970968824..f48d331a629 100644 --- a/mailer.rst +++ b/mailer.rst @@ -395,9 +395,9 @@ it with: .. code-block:: terminal - $ composer require twig/cssinliner-extension + $ composer require twig/extra-bundle twig/cssinliner-extra -The extension is enabled automatically. To use this, wrap the entire template +The extension is enabled automatically. To use it, wrap the entire template with the ``inline_css`` filter: .. code-block:: html+twig @@ -497,14 +497,14 @@ the extension in your application: .. code-block:: terminal - $ composer require twig/inky-extension + $ composer require twig/extra-bundle twig/inky-extra -The extension adds an ``inky`` filter, which can be used to convert parts or the -entire email contents from Inky to HTML: +The extension adds an ``inky_to_html`` filter, which can be used to convert parts +or the entire email contents from Inky to HTML: .. code-block:: html+twig - {% apply inky %} + {% apply inky_to_html %} @@ -521,7 +521,7 @@ You can combine all filters to create complex email messages: .. code-block:: twig - {% apply inky|inline_css(source('@css/foundation-emails.css')) %} + {% apply inky_to_html|inline_css(source('@css/foundation-emails.css')) %} {# ... #} {% endapply %}