kirby-blade icon indicating copy to clipboard operation
kirby-blade copied to clipboard

Use Laravel Blade templates in Plugin

Open wdebusschere opened this issue 2 years ago • 3 comments

We have developed a custom blocks plugin, it would be very handy if we could also store the default blade templates inside the plugin. Thank you.

wdebusschere avatar Jun 22 '22 11:06 wdebusschere

@afbora with the custom plugin we make a custom block: example Heading2, it would be great if we could also store the Heading2 blade template inside the plugin. Similar to whats already possible with storing snippets in a plugin.

wdebusschere avatar Jun 22 '22 12:06 wdebusschere

Got it, sorry, unfortunately this is an improvement should be in the Kirby core.

afbora avatar Jun 22 '22 12:06 afbora

@afbora Ok, but is there no way to put the blade template in the plugin snippets folder and add some code in this plugin to also load plugin snippets?

wdebusschere avatar Jun 22 '22 12:06 wdebusschere