/** * Display the view * * @return string the template rendered with the view as data */ public function show() { $template = $this->templateLoader->load($this->template); return $template->render($this); }
/** * Override _getPartial to autoload partials. * * @param string $tag_name partial name * * @return string */ protected function _getPartial($tag_name) { return $this->_loader->load($tag_name . '.mustache')->getTemplate(); }
/** * Render the consent template. * * @return string */ public function consent() { return $this->templateLoader->load('consent.mustache')->render($this); }