Skip to content

HTMX: tools for Drupal developers

The HTMX Module provides tools to enhance the core HTMX integration and experiment with new features. This documentation is divided into three sections. If you are browsing these in the repository, see the named directories adjacent to this file. On the web the sections are linked in the left sidebar.

Blocks

HTMX blocks can be configured with all the display conditions of regular blocks. These blocks are then dynamically loaded via HTMX by configuring and placing an HTMX Loader Block in a theme's block placement tab.

Tools

  • Plugins which allow building views intended to be displayed via HTMX.
  • An HTMX attribute builder for Twig.
  • An easy way to enable debugging using the htmx_debug submodule.

More on HTMX

Get involved with HTMX in Drupal

Bring your questions and your ideas for improving this module to our issue queue!

If you would like to help us replace jQuery Ajax with HTMX in Drupal core, come collaborate in these issues:

Other references