{{ article.title }}
+{{ article.body|truncatewords:30 }}
+ +diff --git a/opencode.cfg/skills/htmx/SKILL.md b/opencode.cfg/skills/htmx/SKILL.md new file mode 100644 index 0000000..d0a347e --- /dev/null +++ b/opencode.cfg/skills/htmx/SKILL.md @@ -0,0 +1,250 @@ +--- +name: htmx +description: | + htmx gives you access to AJAX, CSS transitions, WebSockets, and Server-Sent Events + directly in HTML using attributes. It enables dynamic web UIs without writing JavaScript + by letting any element issue HTTP requests and swap content into the DOM. +license: Apache-2.0 +compatibility: 'any web server, html' +metadata: + author: terminal-skills + version: 1.0.0 + category: development + tags: + - html + - hypermedia + - ajax + - sse + - websocket + - no-javascript +--- + +# htmx + +htmx extends HTML with attributes like `hx-get`, `hx-post`, `hx-swap`, and `hx-trigger` to make any element capable of issuing HTTP requests and updating the DOM. The server returns HTML fragments, not JSON. + +## Installation + +```html + + + +``` + +## Core Attributes + +```html + + + + +
+ + + + + + +``` + +## Swap Strategies + +```html + + + +{{ article.body|truncatewords:30 }}
+ +