TerrePorter / StringBladeCompiler

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

Engine [stringblade] not found. #79

Open GonrasK opened 2 years ago

GonrasK commented 2 years ago

Hello all, I am trying to run one of your basic examples - return view (['template' => '{{$token}}'], ['token' => 'I am the token value']);

And no matter what I tried, I keep getting this error which resolved in vendor/wpb/string-blade-compiler/src/Factory.php:114

protected function stringViewInstance($view, $data)
{
   return new StringView($this, $this->engines->resolve('stringblade'), $view, null, $data);
}
TerrePorter commented 2 years ago

@GonrasK Were you able to figure out the problem?