afbora / kirby-blade

Enable Laravel Blade Template Engine for Kirby 3
MIT License
20 stars 7 forks source link

Use Laravel Blade templates in Plugin #21

Open wdebusschere opened 2 years ago

wdebusschere commented 2 years ago

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 commented 2 years ago

@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.

afbora commented 2 years ago

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

wdebusschere commented 2 years ago

@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?