mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-10 01:16:52 +00:00
Update documentation for inky_to_html
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user