Skip to content

Paths in readme don't seem to work #5

@sarahjean

Description

@sarahjean

Trying this out with a custom theme (not Emulsify based) and have twig functions in pattern-lab/source/_twig-components. This gives an error that the functions can't be found. I tried moving the _twig_components folder around and it works if it's only one folder deep inside the theme folder, which looks like it's due to the globbing in ExtensionLoader.php: $extensionPaths = glob($themePath . '*/_twig-components/');

I tried editing to $extensionPaths = glob($themePath . '**/*/_twig-components/'); and that works for my case, so will probably just patch for now. Is there still a plan to make this location customizable?

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