You can use plain php files as your views without any compilation or cache layer.
You can access Spiral\Views\Engines\Native\NativeView
instance inside your template.
Hello world, <?= $name ?>!
<?php dump($this->container->get(MyService::class)); ?>
NativeView declares IoC scope for static container, you can use app
or spiral
:
Hello world, <?= $name ?>!
<?= spiral(MyService::class)->someMethod(); ?>
<?= spiral('faker')->someMethod(); ?>
<?= app()->faker->name ?>