예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 /**
  * 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();
 }
예제 #3
0
 /**
  * Render the consent template.
  *
  * @return string
  */
 public function consent()
 {
     return $this->templateLoader->load('consent.mustache')->render($this);
 }