public function templates_in_package($package) { $loader = new FilesIn(self::$temp); $this->assertEquals(['partials/navigation'], $loader->listing()->package($package)->templates()); }
/** * 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); }