描述
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.
安裝
- 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.
常見問題
-
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.