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]);
    }
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]);
    }
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 ] ) ; }
Get HTML Element

Gets Element HTML fragments rendered with data
@param  array  $element Element values
@return string          HTML
Get HTML Element