public function getElementHtml($element)
    {
        // Ensure we have an element type
        if (!isset($element->template) && empty($element->template)) {
            throw new Exception("Missing page element template");
        }

        return $this->container->view->fetch("elements/{$element->template}", ['element' => $element]);
    }