{"repo":"svandragt/htmxpress","free":true,"listed":false,"github":"https://github.com/svandragt/htmxpress","clone":"git clone https://github.com/svandragt/htmxpress.git","description":"WIP plugin to power WordPress with HTMX","language":"PHP","stars":139,"topics":["htmx","prototype","wordpress","wordpress-plugin"],"license":null,"category":"self-hosted-apps","readme_excerpt":"HTMXpress HTMX for WordPress! By using the Rewrite Endpoints API to create a custom endpoint; and a bit of custom template logic, we can output a serverside partial or custom theme template. Using this setup, WordPress can leverage HTML over the wire solutions such as HTMX. HTMX then allows us to do dynamic serverside based rendering; live search and other features without the overhead and complexity of reactive JavaScript frameworks, whilst benefiting from trusted object and full page caching solutions. This repository is exploring the opportunities. Demo 1. Activate plugin (or run wp-env start to spin up a WP environment with the plugin activated). 2. go to /htmx (Endpoint test) 3. go to /htmx/ascii and /html/partial-ascii (template loader test) 4. Inspect html source of theme (enqueued script test) 5. go to /htmx/demo What else can you do? - CSS Transitions https://htmx.org/docs/#css transitions - Boosting https://htmx.org/docs/#boosting - Polling + Server Sent Events https://htmx.org/docs/#sse - Progressbars (eg serverside file upload processing) https://htmx.org/examples/progress-bar/ - More examples https://htmx.org/examples/ Screencast of Demo https://user-images.githubusercontent.com/594871/183612860-b2eb29f7-cfa0-4de1-97fc-b2a5f393cfd2.mp4 Composer install Requires PHP = 8.0. For composer.json -based WordPress projects, install HTMXpress as a VCS dependency: Project use 1. By default HTMX is loaded from an external CDN . While the CDN approach is extremely simple, yo","default_branch":null,"files":null,"tree":[],"storefront":"/r/svandragt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/svandragt/htmxpress/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}