Closed kristopherchun closed 9 years ago
Actually this is the setup I follow in my projects.
Just use @extends('layouts/master')
instead of @extends(Theme::viewsPath('layouts/master'))
and it will pick the master.blade.php
from your actice theme. If not found then it will fall-back to parent (default) theme. Same goes with @include
.
Please confirm that it solves your problem. Thank you for your proposals...
I see. I can't believe I didn't try that first. Yes that worked! Thank you! Great package!
I wanted to use blade @extend for my templating, however I needed a way to get the template based on the selected theme. This works for me, if it finds the file under the themes /resources/views/ folder, it will use it, if not, it will fall back to the default theme. I am still new to this, so this may not be the best way to do this, but is this a feature you can add/improve?
Config:
Usage:
Code Modifications: