public function render($template, $context = array(), Response $response = null)
    {
        if ($response === null) {
            $response = new Response();
        }

        $response->setContent($this['mustache']->render($template, $context));

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

        $response->setContent($this['mustache']->render($template, $context));

        return $response;
    }
public function render ( $ template , $ context = array ( ) , Response $ response = null ) { if ( $ response === null ) { $ response = new Response ( ) ; } $ response -> setContent ( $ this [ 'mustache' ] -> render ( $ template , $ context ) ) ; return $ response ; }
Renders a template and returns a Response.

@param string   $template The template name
@param mixed    $context  The Mustache rendering context
@param Response $response A Response instance

@return Response A Response instance
Renders a template and returns a Response .