@@ -414,7 +414,7 @@ with the ``inline_css`` filter:
414414
415415.. code-block :: html+twig
416416
417- {% filter inline_css %}
417+ {% apply inline_css %}
418418 <style>
419419 {# here, define your CSS styles as usual #}
420420 h1 {
@@ -424,7 +424,7 @@ with the ``inline_css`` filter:
424424
425425 <h1>Welcome {{ email.toName }}!</h1>
426426 {# ... #}
427- {% endfilter %}
427+ {% endapply %}
428428
429429Using External CSS Files
430430........................
@@ -434,10 +434,10 @@ arguments to the filter:
434434
435435.. code-block :: html+twig
436436
437- {% filter inline_css(source('@css/email.css')) %}
437+ {% apply inline_css(source('@css/email.css')) %}
438438 <h1>Welcome {{ username }}!</h1>
439439 {# ... #}
440- {% endfilter %}
440+ {% endapply %}
441441
442442You can pass unlimited number of arguments to ``inline_css() `` to load multiple
443443CSS files. For this example to work, you also need to define a new Twig namespace
@@ -475,15 +475,15 @@ the entire email contents from Markdown to HTML:
475475
476476.. code-block :: twig
477477
478- {% filter markdown %}
478+ {% apply markdown %}
479479 Welcome {{ email.toName }}!
480480 ===========================
481481
482482 You signed up to our site using the following email:
483483 `{{ email.to[0].address }}`
484484
485485 [Click here to activate your account]({{ url('...') }})
486- {% endfilter %}
486+ {% endapply %}
487487
488488 .. _mailer-inky :
489489
@@ -516,7 +516,7 @@ entire email contents from Inky to HTML:
516516
517517.. code-block :: html+twig
518518
519- {% filter inky %}
519+ {% apply inky %}
520520 <container>
521521 <row class="header">
522522 <columns>
@@ -527,15 +527,15 @@ entire email contents from Inky to HTML:
527527 {# ... #}
528528 </row>
529529 </container>
530- {% endfilter %}
530+ {% endapply %}
531531
532532You can combine all filters to create complex email messages:
533533
534534.. code-block :: twig
535535
536- {% filter inky|inline_css(source('@css/foundation-emails.css')) %}
536+ {% apply inky|inline_css(source('@css/foundation-emails.css')) %}
537537 {# ... #}
538- {% endfilter %}
538+ {% endapply %}
539539
540540 This makes use of the :ref: `css Twig namespace <mailer-css-namespace >` we created
541541earlier. You could, for example, `download the foundation-emails.css file `_
0 commit comments