public static function template($template, array $vars = [], $code = 200, array $headers = [])
    {
        return new Response\Template($template, $vars, $code , $headers);
    }
public static function template($template, array $vars = [], $code = 200, array $headers = [])
    {
        return new Response\Template($template, $vars, $code , $headers);
    }
public static function template ( $ template , array $ vars = [ ] , $ code = 200 , array $ headers = [ ] ) { return new Response \ Template ( $ template , $ vars , $ code , $ headers ) ; }
Create template response

@param string $template
@param array $vars
@param int $code
@param array $headers
@return Response\Template
Create template response