Can you add the ability to call Plates render without $this->response->write()?
For example creating email templates and using Plates for template inheritance. And attach the rendered html to an email body instead of returning a view for a web response.
Something like this maybe? This would save from instantiating Plates again with the needed settings since we are already.
public function renderWithNoResonse($name, array $data = [])
{
return $this->plates->render($name, $data);
}
Can you add the ability to call Plates
render
without$this->response->write()
?For example creating email templates and using Plates for template inheritance. And attach the rendered html to an email body instead of returning a view for a web response.
Something like this maybe? This would save from instantiating Plates again with the needed settings since we are already.