Closed jdion84 closed 1 year ago
Well, I'm thinking if the @volt directive isn't there and there's no body tag in the template, maybe we automatically add the default layout. We'd then use @volt on the default slot of that layout instead of using something like ->action([Volt::class, 'route']) or ->volt().
I'm not sure about this yet, but go ahead and make a sample (POC) with this idea, and we'll see where to go from there.
If eventually you do a pull request, we can follow the issue from there.
right now when we use folio with volt we must add
@volt
directive and<x-layouts.app>
tag to our full page components, e.g.:when registering full page components directly with volt, we use the
Volt::route
method:when we do it this way, we do not need to use the
@volt
directive or the layout tag in our view:what if we could simply specify this class & method via the
Folio
registrar?:or even add a new method to
Folio
that uses an abstraction for volt:this way all our folio pages will be interactive without requiring additional directive, and would also use the default livewire
layouts.app
component.i can submit PR if you're interested
thoughts?