Reference

Guide

Templates

Templates are registered with the templates extension. The extension accepts an array of key/value pairs, where the key is the name of the template and the value the path to the file in your plugin folder.

Kirby::plugin('your/plugin', [
    'templates' => [
        'blog' => __DIR__ . '/templates/blog.php'
    ]
]);