I’m using the plain kit with Kirby 4. Download and unzipped the Twig-Kirby plugin onto site/plugins/kirby-twig so I can use my Twig templates, but immediately get the error message:
The section “pages” could not be loaded: Class “Wearejust\Kirby\Twig\Template” not found
It’s the first time I see this but it’s also my second Kirby website and found no other threads on this…
I see that on index.php this snippet mentions the path that’s in the error message:
'components' => [
'template' => function (App $kirby, string $name, string $contentType = 'html', string $defaultType = 'html') {
return new Wearejust\Kirby\Twig\Template($name, $contentType, $defaultType);
},
Nothing on the kirby-twig readme file mentions other step and not sure what I can do here…
Is the plugin still compatible with kirby 4?