Use an asset manager like the one by teepluss and at runtime nclude dinamically a stylesheet accordingly with each site setting
I currently have teepluss installed, but I can't figure out how to use @extends, or @includes, and passing $data to master layouts. This support might not be included in teepluss.
post a gist or something else with some rows of code. we need to understand your setup
Teepluss is installed. This is currently broken. The blade files worked fine in app/views. I don't know how to make them work in Teepluss. I like the idea of using public/themes/ tree for my views and assets.
This was my attempt at using Teepluss to accomplish the goal of using more than one "theme" with separation. I'm open to handling it differently without using Teepluss.
public/themes/default/views/home/index.blade.php https://gist.github.com/darkness/9653577
public/themes/default/layouts/master.blade.php https://gist.github.com/darkness/9653724
app/controllers/HomeController.php https://gist.github.com/darkness/9653807
Hi! You can try my package igaster/laravel-theme
Features:
Your views remain theme-agnostic.... All your blade syntax works untouched (@include, @extend etc)
As a benefit, it integrates with orchestra/asset to provide advances asset managment...
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community