API for HTMX

描述

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.

螢幕截圖

  • Main options page.

安裝

  1. Install API-for-HTMX from WordPress repository. Plugins > Add New > Search for: API-for-HTMX. Activate it.
  2. Configure API-for-HTMX at Settings > HTMX Options.
  3. 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.

評價

閱讀全部1個評價

貢獻者及開發者

“API for HTMX” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 API for HTMX 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄