If you ever wanted to create a server-based web application, then HTMX is a solution that offers great flexibility for development, allowing RAD Studio developers to deliver the business logic while still allowing designers to make the web application look great using CSS. Without having to write a single line of JavaScript code, you can build a full web application, with the entire logic in a web server. And what would be the best language for such a web server? Of course, it’s Delphi.
In this post, we’ll talk about the popular HTMX library and its integration with Delphi. We will also see a very basic demo of a web application running entirely on Delphi code using the WebBroker, with HTMX for the server-side requests.
Table of Contents
Part 2:
In Part 1 of this series, we explored a simple demonstration of a web application running with Delphi code inside a WebBroker application, and using HTMX as a kind of middle-man.
In this article we are going to further improve the demo, by making it look modern and up-to-date with just a few changes. If you haven’t read the prior article, I highly recommend you to do so, because you will need the knowledge and code of Part 1.
Table of Contents
Part 3:
There are over 472 million websites powered by WordPress. What most of them have in common is that they don’t benefit from the power of the web because WordPress is limited by its PHP structure. If you want to take your WordPress page or blog to the next level, then HTMX will be the right choice for you.
In this article, we are going to explore how to use HTMX in WordPress, by embedding the recent demo from our previous blog post onto an existing site. Just to recollect, this is what the demo looked like:
Our Delphi web server, powered by the WebBroker, had a few basic functionalities to return plain text and HTML strings, which were then swapped in the existing HTML by HTMX. With just a few slight changes we are going to be able to embed this entire application including all of its functionality into a WordPress blog, as its own post. We are also going to see how simple it is to add some more functionality.
Table of Contents