An open API service indexing awesome lists of open source software.

https://github.com/stillat/laravel-volt-precompiler-example

Example repository containing an experimental Blade precompiler, which compiles custom component syntax to class-based Livewire Volt components.
https://github.com/stillat/laravel-volt-precompiler-example

laravel livewire volt

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

          

This repository contains the example code developed in the following blog post:

[Implementing a Custom Laravel Blade Precompiler for Volt and Livewire](https://stillat.com/blog/2023/09/04/implementing-a-custom-blade-precompiler-for-laravel-volt-and-livewire)

It provides an experimental Blade precompiler which compiles the following component syntax:

```blade



@livewireStyles

$this->count++"
>
Increment

Count: {{ $count }}


@livewireScripts

```

into Livewire Volt class-based components behind the scenes.

## License

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