This is part three of a series of articles looking at HTMX in Drupal. Last time I looked at using HTMX to run a "load more" feature on a Drupal page . Before moving onto looking at forms I thought a final example of using HTMX and controllers to achieve an action. One of the key examples that helped me understand HTMX was when it was used to create a tabbed interface, without reloading the page. This was quite simple to recreate in Drupal and can be done in a single controller. In this article we will be creating a tabbed interface in Drupal, where HTMX is used to power loading the data in a tab like interface without reloading the page. All of the code contained in this article can be found in the Drupal HTMX examples project on GitHub , but here we will go through what the code does and what actions it performs to generate content. The first task is to create the route for our controller. The Route The route we create here just points to an action in a controller.…