adrianmak Posted February 17, 2016 Share Posted February 17, 2016 I knew there are some standalone laravel blade template engine. Anyone success to use it on ur pw's project ? Link to comment Share on other sites More sharing options...
Pierre-Luc Posted February 18, 2016 Share Posted February 18, 2016 There are a few "standalone" packages on Packagist.org but they all have a few Illuminate components requirements, which themselves have a few too. Looks like Blade is only really intended to be called from within Laravel itself.. Link to comment Share on other sites More sharing options...
Mike Rockett Posted February 18, 2016 Share Posted February 18, 2016 There are a few "standalone" packages on Packagist.org but they all have a few Illuminate components requirements, which themselves have a few too. Looks like Blade is only really intended to be called from within Laravel itself.. I'm sure I read somehwere that Blade could easily be used outside of the Laravel scope. Never really tried it, though, because I'm a Twig fan. 1 Link to comment Share on other sites More sharing options...
Pierre-Luc Posted February 19, 2016 Share Posted February 19, 2016 It sure can be, look at philo/laravel-blade (30K downs) or duncan3dc/blade (26K downs). But there are (quite a few) requirements to run those packages though, and if you're ok dealing with external dependencies that might go without a head dev anytime, suit yourself. Not that I think Laravel is going to die anytime soon, but those projects — not so sure. I've been burned enough times on forks to have learned that lesson. I'd rather stick with twig/twig (14.6M downs) which has literally no dependencies, though personally I'm more of a "PHP's already a good at templating and I don't want to learn yet another template engine syntax" kind of guy, though I see how they are nice to use in their "native" environment, where their value seems higher to me. /r 1 Link to comment Share on other sites More sharing options...
Pixrael Posted February 20, 2017 Share Posted February 20, 2017 https://github.com/mauricius/TemplateEngineBlade Link to comment Share on other sites More sharing options...
Mike Rockett Posted February 20, 2017 Share Posted February 20, 2017 I haven't tested this yet, but I think we should be using the View component (along with Blade, included) so that we're up to date with the features. The actual implementation by Matt relies on 5.1 components, but I doubt much has changed in terms of setting things up - should be easy enough, if anyone is interested. (I would, but no time.) https://github.com/mattstauffer/Torch/tree/master/components/view Nevermind: I see the third-party packages are importing Blade directly. Link to comment Share on other sites More sharing options...
Recommended Posts