Example #1
0
 /**
  * Process partial section
  *
  * @param Context $context current context
  * @param array   $current section node data
  *
  * @return string the result
  */
 private function _partial(Context $context, $current)
 {
     $partial = $this->handlebars->loadPartial($current[Tokenizer::NAME]);
     if ($current[Tokenizer::ARGS]) {
         $arguments = new Arguments($current[Tokenizer::ARGS]);
         $context = new Context($this->_preparePartialArguments($context, $arguments));
     }
     return $partial->render($context);
 }