8000 Showing new -extra Twig extension repos by weaverryan · Pull Request #12505 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Showing new -extra Twig extension repos #12505

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
Oct 18, 2019
Merged
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
14 changes: 7 additions & 7 deletions mailer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 %}
<container>
<row class="header">
<columns>
Expand All @@ -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 %}

Expand Down
0