Skip to content

engine-twig-php: include-function syntax not matched by findPartials  #1471

@hadl

Description

@hadl

I am using Pattern Lab Node v5.17.0 on Mac, with Node v16.18.1, using a Vanilla Edition.

Expected Behavior

As of Twig 1.12, it is recommended to use the include function instead as it provides the same features with a bit more flexibility.

Patternlab should find these includes too and show them in the linage information of a pattern.

Actual Behavior

Patternlab Engine Twig PHP findPartials regex does not match the include-function syntax.
With that the linage is not found / shown and patterns are not updated correctly when using incremental builds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    twig rendererIssues and updates related to the PHP-based Twig rendering engine

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions