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.
- Host: GitHub
- URL: https://github.com/stillat/laravel-volt-precompiler-example
- Owner: Stillat
- License: mit
- Created: 2023-09-04T21:20:03.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-04T21:47:08.000Z (almost 3 years ago)
- Last Synced: 2025-01-28T21:39:14.410Z (over 1 year ago)
- Topics: laravel, livewire, volt
- Language: PHP
- Homepage: https://stillat.com/blog/2023/09/04/implementing-a-custom-blade-precompiler-for-laravel-volt-and-livewire#content-wrapping-up
- Size: 66.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: license.md
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.