Update documentation for inky_to_html

This commit is contained in:
Tugdual Saunier
2019-10-16 09:51:34 +02:00
parent 23419a9408
commit ae50257dd0
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -24,17 +24,17 @@ You can also use the filter on an included file:
.. note::
The ``inky_to_html`` filter is part of the ``CssInlinerExtension`` which is not
The ``inky_to_html`` filter is part of the ``InkyExtension`` which is not
installed by default. Install it first:
.. code-block:: bash
$ composer req twig/cssinliner-extra
$ composer req twig/inky-extra
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explictly on the Twig environment::
use Twig\Extra\CssInliner\CssInlinerExtension;
use Twig\Extra\Inky\InkyExtension;
$twig = new \Twig\Environment(...);
$twig->addExtension(new CssInlinerExtension());
$twig->addExtension(new InkyExtension());
+1 -1
View File
@@ -3,6 +3,6 @@ Twig Inky Extension
This package is a Twig extension that provides the following:
* [`inky`][1] filter: processes an [inky email template](https://github.com/zurb/inky).
* [`inky_to_html`][1] filter: processes an [inky email template](https://github.com/zurb/inky).
[1]: https://twig.symfony.com/inky