Goodday all,
Is there a good way to ‘bulk-add’ bleuprints/snippits/templates etc. by passing a root directory?
Currently I am manually adding every entry in the plugin initialization function, but that becomes quit tedious when there are a lot of files.
So I was wondering if there is a way to define a root directory which Kirby should index like it is inside the ‘site’ directory. For example:
Kirby::plugin('my/plugin', [
'templates' => [
'_root' => __DIR__.'/src/templates/'
],
'snippets' => [
'_root' => __DIR__.'/src/snippets/'
],
'blueprints' => [
'_root' => __DIR__.'/src/blueprints/',
]
]);
I would love to hear any options to this.
Thanks for your time!