TerrePorter / StringBladeCompiler

Render Blade templates from string
MIT License
175 stars 75 forks source link

Livewire support #78

Open bernhardh opened 3 years ago

bernhardh commented 3 years ago

Not sure if this is intended, but livewire components aren't working.

{{ view(["template" => "<livewire:my-component />"], ["test" => "ABC"]) }}

I am getting "Undefined variable: _instance". Same livewire component inside a regular blade.php template is working.

TerrePorter commented 2 years ago

@bernhardh I haven't gotten a chance to really dig into this yet.

Have you tried the blade helper syntax?

@livewire('image-gallery', [
        'isOwner' => $isOwner,
        'token' => $token
        ])