Skip to content

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

Open

Description

@sghoweri

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions