Closed edster closed 6 years ago
Hi @edster and thanks for the PR,
Haven't been using the Builder / Pyro for quit awhile :/ ... However, looking into the link you provided it seems there's an extra step of creating a template that's missing,
So the parse
function should now have
public function parse($content, $data = [])
{
$template = $env->createTemplate($content);
return $this->twig->render($template, $data);
}
I haven't tested this so be careful :)
Thanks @websemantics, that got me farther along, I figured there was something missing there.
Ends up throwing Illegal offset type in isset or empty afterwards.
Not sure how this all works xD, might be a bug https://github.com/twigphp/Twig/issues/2546
https://github.com/websemantics/builder-extension/pull/29
Pull request has an issue after this change. Not sure if unrelated but havn't been able to find a fix for it.