Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.
This repository was archived by the owner on May 13, 2026. It is now read-only.

Incompatibility with UI Patterns (Drupal module) #38

Description

@tanc

The UI Patterns module allows patterns to be created and these can be associated with Pattern Lab based twig files. Due to Drupal's hard coded .html.twig extension in ThemeManager the UI Patterns module can't load a twig file from Pattern Lab which is missing the .html portion. This means that to load a twig file from Pattern Lab it has to be renamed to html.twig and all the supporting files also need to have html in them, for example: something.html.json. This is unpleasant. Is there a way of specifying the twig files in Pattern Lab to use html.twig while retaining the name of the supporting JSON, scss and md files without 'html' in the title?

See: nuvoleweb/ui_patterns/issues/49

Activity

  1. tanc commented on Jan 31, 2017

    @tanc
    Author

    It would appear that symfony/twig advocates the .html.twig file extension, so it would be great if this was supported in Pattern Lab.

    https://symfony.com/doc/current/reference/configuration/twig.html

  2. tanc commented on Mar 1, 2017

    @tanc
    Author

    Any thoughts on this?

  3. ademarco commented on Mar 27, 2017

    @ademarco

    @tanc UI Patterns will support any extensions via the use: property once this PR will get in: nuvoleweb/ui_patterns#84

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