public function bind(string $alias, string $template, array $params = []): void {
    $this->bindCallback($alias, function(Generator $generator) use($template, $params): void {
      $compiled = $generator->generate($template, $params);
      $generator->includeFile($compiled);
    });
  }
public function bind(string $alias, string $template, array $params = []): void {
    $this->bindCallback($alias, function(Generator $generator) use($template, $params): void {
      $compiled = $generator->generate($template, $params);
      $generator->includeFile($compiled);
    });
  }
public function bind ( string $ alias , string $ template , array $ params = [ ] ) : void { $ this -> bindCallback ( $ alias , function ( Generator $ generator ) use ( $ template , $ params ) : void { $ compiled = $ generator -> generate ( $ template , $ params ) ; $ generator -> includeFile ( $ compiled ) ; } ) ; }
Bind a class to a template with specified parameters

@param  string   $alias
@param  string   $template
@param  mixed[]  $params    (optional)

@return  void
Bind a class to a template with specified parameters