Bolt\Controller\Frontend::template PHP Method

template() public method

Renders the specified template from the current theme in response to a request without loading any content.
public template ( string $template ) : TemplateResponse
$template string The template name
return Bolt\Response\TemplateResponse
    public function template($template)
    {
        // Add the template extension if it is missing
        if (!preg_match('/\\.twig$/i', $template)) {
            $template .= '.twig';
        }
        return $this->render($template);
    }