Skip to content

Stillat/laravel-volt-precompiler-example

Repository files navigation

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.

License

This example repository is free software, released under the MIT license.

About

Example repository containing an experimental Blade precompiler, which compiles custom component syntax to class-based Livewire Volt components.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published