src/Twig.php
public function render(ResponseInterface $response, $template, $data = [])
    {
         $response->getBody()->write($this->fetch($template, $data));

         return $response;
    }
public function render(ResponseInterface $response, $template, $data = [])
    {
         $response->getBody()->write($this->fetch($template, $data));

         return $response;
    }
public function render ( ResponseInterface $ response , $ template , $ data = [ ] ) { $ response -> getBody ( ) -> write ( $ this -> fetch ( $ template , $ data ) ) ; return $ response ; }
Output rendered template

@param ResponseInterface $response
@param  string $template Template pathname relative to templates directory
@param  array $data Associative array of template variables
@return ResponseInterface
Output rendered template