public function renderSnippet($name)
    {
        if (!isset($this->snippets[$name])) {
            throw new InvalidArgumentException(
                sprintf(
                    "Cannot find a snippet with name '%s'",
                    $name
                )
            );
        }

        return $this->getView()->render(
            $this->snippets[$name]['template'],
            $this->snippets[$name]['values']
        );
    }