Ejemplo n.º 1
0
 /**
  * Load a prepared stack.
  *
  * @param string $name
  *
  * @return Builder
  *
  * @throws RendererException
  */
 public function loadStack($name)
 {
     $stacks = Configuration::get('template.stacks');
     if (!isset($stacks[$name])) {
         throw new RendererException("Stack '" . $name . "' not found!");
     }
     $this->render->replaceAll($stacks[$name]);
     return $this;
 }