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.

Update Twig to version 2 #41

Description

@renestalder

Patternengine PHP Twig still uses Twig < 2. In my case, I create reusable component libraries with Patternlab. Those can be used in CMS out of the box. The problem is, that most of those CMS use Twig 2, thus there are some incompatibilities which don't occur for me in Patternlab, but come up when used in a Twig 2 environment.

Activity

  1. sghoweri commented on Aug 27, 2017

    @sghoweri

    @renestalder any chance you could add his issue over on the Drupal Pattern Lab fork @EvanLovely and I have been actively maintaining? https://github.com/drupal-pattern-lab/patternengine-php-twig

    Considering how Drupal 8.4 is slated to use Twig v2, I definitely think this should get taken care of sooner rather than later!

  2. mkoe-unitb commented on Aug 16, 2018

    @mkoe-unitb

    It is still Twig < 2. Do you found a workaround?

  3. renestalder commented on Aug 16, 2018

    @renestalder
    Author

    @mkoe-unitb I still use Twig v1 that get's included in Twig v2. In most cases it's not a problem. Twig 2 mostly is just more strict. I didn't find breaking changes that came into my way.

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