HandlebarsHelperWithHelper

The With Helper.

Defined (2)

The class is defined in the following location(s).

/vendor/calderawp/metaplate-core/vendor/xamin/handlebars.php/src/Handlebars/Helper/WithHelper.php  
  1. class WithHelper implements Helper 
  2. /** 
  3. * Execute the helper 
  4. * @param \Handlebars\Template $template The template instance 
  5. * @param \Handlebars\Context $context The current context 
  6. * @param array $args The arguments passed the the helper 
  7. * @param string $source The source 
  8. * @return mixed 
  9. */ 
  10. public function execute(Template $template, Context $context, $args, $source) 
  11. $context->with($args); 
  12. $buffer = $template->render($context); 
  13. $context->pop(); 
  14.  
  15. return $buffer; 
/vendor/xamin/handlebars.php/src/Handlebars/Helper/WithHelper.php  
  1. class WithHelper implements Helper 
  2. /** 
  3. * Execute the helper 
  4. * @param \Handlebars\Template $template The template instance 
  5. * @param \Handlebars\Context $context The current context 
  6. * @param array $args The arguments passed the the helper 
  7. * @param string $source The source 
  8. * @return mixed 
  9. */ 
  10. public function execute(Template $template, Context $context, $args, $source) 
  11. $context->with($args); 
  12. $buffer = $template->render($context); 
  13. $context->pop(); 
  14.  
  15. return $buffer;