Skip to content
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

Add Ability to Add Twig Globals To Pattern Lab (Twig's Idea of Global Variables) #6

Open
sghoweri opened this issue Sep 11, 2017 · 0 comments

Comments

@sghoweri
Copy link
Collaborator

https://twig.symfony.com/doc/2.x/advanced.html#id1

Now I know that Pattern Lab has offered globally available data via the _data folder for a long time now however that only really helps if you're using Pattern Lab on its own vs having PL serve as a living source of truth for your Design System (with Drupal Integration of course).

I'm pretty sure I can whip something up for this but essentially I'm looking to expose Twig's native Globals extension to PL so shared constants across patterns can get universally shared with Drupal (ex. if using the Unified Twig Extensions module) which would include adding a brand new Globals folder along side the current filter / tags / functions folders.

CC @EvanLovely @evanmwillhite @aleksip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant