public function load(
        string $component,
        string $name,
        string $themename,
        bool $includecomments = false
    ) : string {
        // Get the template source from the callback.
        $source = ($this->gettemplatesource)($component, $name, $themename);

        // Remove comments from template.
        if (!$includecomments) {
            $source = $this->strip_template_comments($source);
        }

        return $source;
    }