We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bef1316 commit b2e65c2Copy full SHA for b2e65c2
src/Extra/FileTreeBuilder.php
@@ -253,6 +253,22 @@ public function dirFiles(string $name, string ...$files): self
253
});
254
}
255
256
+ /**
257
+ * Render template files by glob match.
258
+ *
259
+ * @param string $pattern
260
+ * @param array $tplVars
261
262
+ * @return $this
263
+ */
264
+ public function globRender(string $pattern, array $tplVars = []): self
265
+ {
266
+ foreach (glob($pattern) as $tplFile) {
267
+ $this->tplFile($tplFile, '', $tplVars);
268
+ }
269
+ return $this;
270
271
+
272
/**
273
* Create file from a template file
274
*
0 commit comments