Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

bamboo_twig

3,293 sites Security covered
View on drupal.org

All the Twig features you missed until now.

A Drupal powered module.

The Bamboo Twig module provides some Twig extensions with some useful functions and filters aimed to improve the development experience.

Bamboo Twig has a lot of advantages and brings a lot of new features to the Twig landscape of Drupal.
It does not alter performance by using twig lazy loading, improves the code quality with automated workflow. It also includes automated unit and kernel tests to ensure stability.

📖 Read the article 📖

Use Bamboo Twig if

  • You need to "Format dates using Drupal I118n".
  • You need to "Render a Block".
  • You need to "Render a View".
  • You need to "Render a Region".
  • You need to "Render an Entity with view mode".
  • You need to "Load an Entity".
  • You need to "Render a Field".
  • You need to "Retrieve the current user".
  • You need to "Check permissions or roles".
  • You need to "Render a Form".
  • You need to "Deal with image styles".
  • You need to "Use Token".
  • You need to "Create an absolute URL from a theme".
  • You need to "Retrieve the Extension file from given mimeType".
  • You want to use a twig module which is design to works on multilingual websites.
  • You want to use a twig module that follows all the best practices.
  • You want to use a twig module that ensure stability with tests.
  • You want to use a twig module that is compatible Drupal 8, Drupal 9, Drupal 10 & Drupal 11 (dev).

Bamboo Twig can do a lot more than that, but perhaps these are some of the obvious uses of Bamboo Twig.

Getting Started

We highly recommend you to install the module using composer.

Check out the official documentation about it.

Usage

Check out the official documentation about Bamboo Twig Extensions & usage or read the README.md file on Github.

You may also be interested by this article about Bamboo Twig:

Performances

For performances reasons, Bamboo Twig has been split into multiple sub-modules for each topic he provides Twigs.

Bamboo Twig versions

Bamboo Twig is only available for Drupal 8, Drupal 9, Drupal 10 & Drupal 11!

  • if you are running Drupal 11.x, use Bamboo Twig 6.0.x.
  • if you are running Drupal 10.x, use Bamboo Twig 6.0.x.
  • if you are running Drupal 9.x, use Bamboo Twig 5.x.
  • if you are running Drupal 8.9.x, use Bamboo Twig 5.0.
  • if you are running Drupal 8.7.x, use Bamboo Twig 4.x.

Which version should I use?

Drupal Core Bamboo Twig 8.0.x 1.x 8.4.x 2.x 8.7.x 4.x 8.9.x 5.0 9.x 5.x 10.x 6.x 11.x 6.x

Dependencies

The Drupal version of Bamboo Twig requires nothing !
Feel free to use it.

Join Our Drupal Slack Channel



Similar modules

At first sight, Bamboo Twig offers similar functionality to the following modules, although Bamboo Twig will normalize the way you use twig in your Drupal project, thus reducing the need to install a bunch of extra modules.

Plus, it adds a lots of functionalities, ensures stability with tests, includes automated quality control and is totally open to contribution via Github or Drupal Issue Queue.

Finally, Bamboo Twig follows all the best practices of Drupal to ensure compatibility with Drupal 9, 10, 11 and more.

Supporting organizations

This project is sponsored by Antistatique. We are a Swiss Web Agency, Visit us at www.antistatique.net or Contact us.

Activity

Total releases
5
First release
Apr 2025
Latest release
1 week ago
Release cadence
87 days
Stability
100% stable

Release Timeline

Releases

Version Type Release date
6.0.7 Stable Apr 7, 2026
6.0.6 Stable Jan 26, 2026
6.0.5 Stable Aug 25, 2025
6.0.4 Stable May 15, 2025
6.0.3 Stable Apr 23, 2025