This module demonstrates the integration of HTMX for AJAX-driven, dynamic content loading in Drupal. It provides a practical example by fetching and displaying user data from an external API.
- Add the module to your Drupal 10 site (rename it to
htmx
) - Enable the module
- Visit
/htmx-demo
and click on the button - Drupal should render a list of demo users from dummyjson.com below the button without reloading the page