示例#1
0
 /**
  * The famous register helper matching the Handlebars API
  *
  * @param string $name The name of the helper
  * @param callable $helper The helper handler
  * @return Handlebars
  */
 public function registerHelper(string $name, $helper) : Handlebars
 {
     $this->runtime->addHelper($name, $helper);
     return $this;
 }