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.
Extensions
htmx 4 provides several extensions maintained by their core team.
The htmx_ext sub-module provides a Drupal integration for these extensions. Extensions
are enabled by enabling the htmx_ext module and browsing to /admin/config/system/htmx-extensions.
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_debugsubmodule.
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: