Exemplo n.º 1
0
 public function templates_in_package($package)
 {
     $loader = new FilesIn(self::$temp);
     $this->assertEquals(['partials/navigation'], $loader->listing()->package($package)->templates());
 }
Exemplo n.º 2
0
 /**
  * Creates a new file-based template loader
  *
  * @param var $base The base folder, either an io.Folder or a string
  * @param string[] $extensions File extensions to check, including leading "."
  */
 public function __construct($arg, $extensions = ['.handlebars'])
 {
     parent::__construct($arg, $extensions);
 }