Skip to content

Commit f386e45

Browse files
authored
Merge pull request #112 from laravel/fix-volt-blade-parsing
Fix volt blade parsing
2 parents 9a3a81c + 07f240f commit f386e45

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.ai/fluxui-free/core.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
- Fallback to standard Blade components if Flux is unavailable.
77
- If available, use Laravel Boost's `search-docs` tool to get the exact documentation and code snippets available for this project.
88
- Flux UI components look like this:
9+
@verbatim
910
<code-snippet name="Flux UI Component Usage Example" lang="blade">
1011
<flux:button variant="primary"/>
1112
</code-snippet>
13+
@endverbatim
1214

1315
### Available Components
1416
This is correct as of Boost installation, but there may be additional components within the codebase.

.ai/volt/core.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- This project uses Livewire Volt for interactivity within its pages. New pages requiring interactivity must also use Livewire Volt. There is documentation available for it.
44
- Make new Volt components using `php artisan make:volt [name] [--test] [--pest]`
55
- Volt is a **class-based** and **functional** API for Livewire that supports single-file components, allowing a component's PHP logic and Blade templates to co-exist in the same file
6-
- Livewire Volt allows PHP logic and Blade templates in one file. Components use the `@volt` directive.
6+
- Livewire Volt allows PHP logic and Blade templates in one file. Components use the @verbatim`@volt`@endverbatim directive.
77
- You must check existing Volt components to determine if they're functional or class based. If you can't detect that, ask the user which they prefer before writing a Volt component.
88

99
### Volt Functional Component Example

0 commit comments

Comments
 (0)