New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a decoupled Drupal Twig Extension #1

aleksip opened this Issue May 5, 2016 · 3 comments


None yet
3 participants

aleksip commented May 5, 2016

Now that patternengine-php-twig provides a way to register proper Twig Extensions (hooray!) we should probably concentrate on creating a Drupal Twig Extension.

The extension should be decoupled from both Drupal and Pattern Lab and usable with all kinds of decoupled Twig/Drupal projects. Maybe something that could be used as a part of the stand-alone implementation discussed in

Not sure what would be the best home for this extension, ideally it would be an official Drupal project.


This comment has been minimized.


EvanLovely commented May 5, 2016

This would be amazing. That issue linked has been getting a ton of attention lately!


This comment has been minimized.

heddn commented Dec 13, 2016

This seems stalled out. Is there any progress, apart from the linked issue?


This comment has been minimized.


aleksip commented Dec 22, 2016

Not that I know of, I'm afraid.

Using 'presenter' templates in component based Drupal themes seems to be the currently popular solution. With no Drupal specific Twig in the components themselves, there is no need for a Drupal Twig Extension in Pattern Lab. It would still be nice to have a Drupal Twig Extension for other use cases, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment