public function getSnippet($snippet, array $params = [], $sanitize = null)
    {
        $template = clone $this;
        $template->scopes[spl_object_hash($this)] = $this;
        $template->removeAllPlaceholders();
        $result = $template->getSnippetInternal($snippet, $params, $sanitize);
        $this->cachePlaceholders = $template->cachePlaceholders;

        return $result;
    }