You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 7, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 7, 2023. It is now read-only.
Hey @matrad,
Thanks for the question. The way Pattern Lab is set up means different template engines can be created to power Pattern Lab. That being said, I don't know if anyone's created a Bade templating engine for Pattern Lab.
Other people have integrated Pattern Lab with CMS projects, so it's technically possible. You would need to create the Blade engine for Pattern Lab in order to make it a smooth transition however.
I keep coming back to the idea of using Patternlab with Laravel but it seems as though there still isn’t a blade integration.
So, option 1 is to use Twig instead of blade in laravel.
But, option 2, to get blade running inside Patternlab seems so much more preferable.
Where is the best place to start if I want to build a blade templating engine for Patternlab? I’d be happy to build this if someone can point me at some resources about how to get started.
So, option 1 is to use Twig instead of blade in laravel.
We just launched a project that did exactly this. I can't speak to the Laravel side of things, but the dev consumed PL as a project dependency and overwrote only the data that needed wired up (usernames, routes, etc). It was pretty great!
But, option 2, to get blade running inside Patternlab seems so much more preferable.
Hey @simonhunt, a blade templating engine for Pattern Lab would be perfect for Laravel based projects. I'm also looking for it since few months but didn't had time & resources to do it. So just to let you know that I support this idea and if I can, I'll be here to help.
Activity
bradfrost commentedon Apr 25, 2017
Hey @matrad,
Thanks for the question. The way Pattern Lab is set up means different template engines can be created to power Pattern Lab. That being said, I don't know if anyone's created a Bade templating engine for Pattern Lab.
Other people have integrated Pattern Lab with CMS projects, so it's technically possible. You would need to create the Blade engine for Pattern Lab in order to make it a smooth transition however.
KatieMFritz commentedon Sep 15, 2017
@matrad This might be relevant: http://cognition.happycog.com/article/solr-laravel-pattern-lab-more-buzzwords
simonhunt commentedon Dec 27, 2018
I keep coming back to the idea of using Patternlab with Laravel but it seems as though there still isn’t a blade integration.
So, option 1 is to use Twig instead of blade in laravel.
But, option 2, to get blade running inside Patternlab seems so much more preferable.
Where is the best place to start if I want to build a blade templating engine for Patternlab? I’d be happy to build this if someone can point me at some resources about how to get started.
bradfrost commentedon Jan 2, 2019
Hey @simonhunt,
We just launched a project that did exactly this. I can't speak to the Laravel side of things, but the dev consumed PL as a project dependency and overwrote only the data that needed wired up (usernames, routes, etc). It was pretty great!
Yep, creating a Blade engine for PL would be the way to go. I'm not sure if there's official documentation on creating a pattern engine (@bmuenzenmeyer would know), but you can check out a few others: https://github.com/pattern-lab/patternengine-php-twig https://github.com/pattern-lab/patternengine-node-handlebars and others on the PL Github page: https://github.com/pattern-lab
antoine3000 commentedon Jan 18, 2019
Hey @simonhunt, a blade templating engine for Pattern Lab would be perfect for Laravel based projects. I'm also looking for it since few months but didn't had time & resources to do it. So just to let you know that I support this idea and if I can, I'll be here to help.