Skip to content

Broken starter kit Twig Demo #1486

Closed
@JosefBredereck

Description

@JosefBredereck

I am using Pattern Lab Node v6.0.1 on Windows | Mac | Linux, with Node v16.17.0, using a Twig Edition.

The Twig Demo is currently not working as expected. There are several issues regarding the pattern data and template loading.
Pages including templates which include other components are not referencing the data provided by the provided companion JSON file.

Expected Behavior

When I install the starter kit via patternlab install --starterkits @pattern-lab/starterkit-twig-demo it should provide a good stating point with basic components and example pages.
Twig files provided under pages should include templates which correctly consume the companion JSON.

For example: The data of homepage.json should correctly be used in pages/homepage.twig which includes templates/homepage.twig

Actual Behavior

I can install the starter kit, but the JSON data from pages is not applied to the output.

Steps to Reproduce

  1. npm create pattern-lab
  2. follow the steps to install twig
  3. patternlab install --starterkits @pattern-lab/starterkit-twig-demo
  4. npm run start
  5. Navigate to pages ⇾ homepage

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions