twig / inky-extension
A Twig extension for the inky email templating engine
Installs: 77 285
Dependents: 0
Suggesters: 0
Security: 0
Stars: 59
Watchers: 3
Forks: 4
Open Issues: 2
Requires
- php: ^7.0
- lorenzo/pinky: ^1.0.5
- twig/twig: ^1.34 || ^2.4
Requires (Dev)
- symfony/phpunit-bridge: ^4.1.8
This package is auto-updated.
Last update: 2019-10-17 05:31:43 UTC
README
WARNINIG: This package is deprecate; migrate to twig/inky-extra
instead.
This package provides support for the inky email templating
engine in Twig via a filter (inky
) for Twig and
a Symfony bundle.
If you are not using Symfony, register the extension on Twig's Environment
manually:
use Twig\Inky\InkyExtension; use Twig\Environment; $twig = new Environment(...); $twig->addExtension(new InkyExtension());
Use the inky
filter to process an inky email template:
{% filter inky %} <row> <columns large="6"></columns> <columns large="6"></columns> </row> {% endfilter %}
You can also use the filter on an included file:
{{ include('some_template.inky.twig')|inky }}