patternengine-php-twig icon indicating copy to clipboard operation
patternengine-php-twig copied to clipboard

Update Twig to version 2

Open renestalder opened this issue 8 years ago • 3 comments

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.

renestalder avatar Jul 19 '17 11:07 renestalder

@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!

sghoweri avatar Aug 27 '17 20:08 sghoweri

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

mkoe-unitb avatar Aug 16 '18 12:08 mkoe-unitb

@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.

renestalder avatar Aug 16 '18 12:08 renestalder