-
Notifications
You must be signed in to change notification settings - Fork 405
Proposal: the road to fully consumable Pattern Libraries in PL (v3.0 - v4.0) #834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It's hard to keep track of everything. This issue has been automatically marked as stale because it has not had recent activity, neither from the team nor the community. It will be closed if no further activity occurs. Please consider adding additional info, volunteering to contribute a fix for this issue, or making a further case that this is important to you, the team, and the project as a whole. Thanks! |
Issue closed after going stale. It can be re-opened if still relevant. |
re-opening this issue - it serves as an important guidepost for post v3 work |
Can we close this issue in favor of the new issues like:
and other issues which are more recent? |
The road to fully consumable Pattern Libraries in PL (v3.0 - v4.0)
Definitions:
And to be clear, I'm talking here about a pattern library being publishable via NPM (or similar) and fully, directly consumable by a site or application without a nasty copy step or transform.
So, okay. Why is this hard currently?
It's hard because the default experience Pattern Lab is limiting. It promises ease of authoring at the cost of lock-in. It allows templates (or components, I suppose!) to include each other with names and syntaxes that aren't supported directly by the templating systems themselves
{{> atoms-button}}
. It encourages the injection of data into templates through non-standard means, via Pattern Parameters and Style Modifiers{{> atoms-button:ds-btn--isDisabled("text": "Save") }}
. Four observations:How would we fix this?
I think this all leads to the following conclusion: for patterns and components in a PL library to be directly consumable, Pattern Lab must
Be fully and forever out of the business of extending template engines' syntax
Allow each templating system to do its own pattern registration and addressing.
But what's the plan?
Here's how I think we can pull this off:
a. I think it's worth calling out that ~all Mustache is valid Handlebars_. Which should ease the transition for teams (that haven't come to rely too heavily on Pattern Parameters and StyleModifiers)
So... what's next?
engine-twig
backstarterkit-handlebars-demo
as the new de-facto beginner's demo of Pattern Lab capabilitiesThe text was updated successfully, but these errors were encountered: