src/Trident/Component/Templating/Templating.php
public function render($template, array $parameters = array(), Response $response = null)
    {
        if ( ! $response instanceof Response) {
            $response = new Response();
        }

        $response->setContent($this->engine->render($template, $parameters));

        return $response;
    }
public function render($template, array $parameters = array(), Response $response = null)
    {
        if ( ! $response instanceof Response) {
            $response = new Response();
        }

        $response->setContent($this->engine->render($template, $parameters));

        return $response;
    }
public function render ( $ template , array $ parameters = array ( ) , Response $ response = null ) { if ( ! $ response instanceof Response ) { $ response = new Response ( ) ; } $ response -> setContent ( $ this -> engine -> render ( $ template , $ parameters ) ) ; return $ response ; }
Render a template with the template engine

@param  string $template
@param  array  $parameters

@return Response
Render a template with the template engine