Defining email template with text or html type in plugin

Registering both a plain text and an html version works like this:

Kirby::plugin('your/plugin', [
    'templates' => [
        'emails/email.html' => __DIR__ . '/templates/email.html.php',
        'emails/email.text' => __DIR__ . '/templates/email.text.php'
    ]
]);
4 Likes