protected function createTemplate($class = NULL)
 {
     $template = parent::createTemplate($class);
     if (class_exists('\\Texy')) {
         $texy = new \Texy();
         $template->registerHelper('texy', callback($texy, 'process'));
     } else {
         $template->registerHelper('texy', function ($string) {
             return $string;
         });
     }
     return $template;
 }
 /**
  * @throws \EventCalendar\Goog\GoogApiException
  */
 public function render()
 {
     $this->prepareDate();
     $this->googAdapter->setBoundary($this->year, $this->month);
     try {
         $this->events = $this->googAdapter->loadEvents();
     } catch (GoogApiException $e) {
         throw $e;
     }
     parent::render();
 }