ekandreas / bladerunner

WordPress plugin for Laravel Blade templating DEPRECATED
http://bladerunner.elseif.se
12 stars 1 forks source link

Root folder for referencing views #43

Closed bumTomica closed 7 years ago

bumTomica commented 7 years ago

Hello,

It would be nice to have an option to set root folder for all file references. For example my views are stored in resources/views so I need to reference it like @include('resources.views.includes.head').

It would be much nicer if there is an option to set that it starts referencing from resources/views and then I could only do @include('includes.head').

ekandreas commented 7 years ago

Have you tried this?

add_filter('bladerunner/template/bladepath', function() {
    return __DIR__.'/views';
});
bumTomica commented 7 years ago

Missed that, thanks! :)