Description
An unofficial WordPress plugin that enables the use of HTMX on WordPress. Adds a new endpoint /wp-htmx/v1/
from which you can load any HTMX template.
HTMX is a JavaScript library that allows you to access AJAX, WebSockets, and Server-Sent Events directly in HTML using attributes, without writing any JavaScript. It reuses an “old” concept, Hypermedia, to handle the modern web in a more HTML-like and natural way.
Check the full feature set at here.
This plugin will include the HTMX library by default, locally from the plugin folder. If you enable Alpine.js and/or Hyperscript, they will also be included locally.
The plugin has an opt-in option, not enforced, to include these third-party libraries from a CDN (using the unpkg.com service). You must explicitly enable this option for privacy and security reasons.
Screenshots
Installation
- Install API-for-HTMX from WordPress repository. Plugins > Add New > Search for: API-for-HTMX. Activate it.
- Configure API-for-HTMX at Settings > HTMX Options.
- Enjoy.
FAQ
-
Where is the FAQ?
-
You can read the full FAQ at GitHub.
-
Suggestions, Support?
-
Please, open a discussion.
-
Found a Bug or Error?
-
Please, open an issue.
Reviews
Contributors & Developers
“API for HTMX” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “API for HTMX” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.