This repository contains the example code developed in the following blog post:
Implementing a Custom Laravel Blade Precompiler for Volt and Livewire
It provides an experimental Blade precompiler which compiles the following component syntax:
<!DOCTYPE html>
<html>
<head>
@livewireStyles
</head>
<body class="antialiased">
<v-volt
:count="10"
@increment="fn() => $this->count++"
>
<button wire:click="increment">Increment</button>
<p>Count: {{ $count }}</p>
</v-volt>
@livewireScripts
</body>
</html>
into Livewire Volt class-based components behind the scenes.
This example repository is free software, released under the MIT license.