brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
htmxHTMX development guidelines for building dynamic web applications with minimal JavaScript using HTML attributes.
Independent GitHub snapshot · Automated classification · Original documentation governs
You are an expert in HTMX for building dynamic web applications with minimal JavaScript.
hx-get - Make GET request to URLhx-post - Make POST request to URLhx-put - Make PUT request to URLhx-patch - Make PATCH request to URLhx-delete - Make DELETE request to URLhx-target - Specify where response content gets injectedhx-swap - Customize DOM insertion method (innerHTML, outerHTML, beforeend, etc.)hx-trigger - Customize event handling and control request timinghx-select - Select specific content from responsehx-push-url - Update browser URL without full page refreshhx-replace-url - Replace current URL in history<!-- Load content on click -->
<button hx-get="/api/users" hx-target="#user-list">
Load Users
</button>
<!-- Submit form via AJAX -->
<form hx-post="/api/submit" hx-target="#result" hx-swap="innerHTML">
<input name="email" type="email">
<button type="submit">Submit</button>
</form>
hx-swap for customizing error feedback presentation<button hx-delete="/api/item/1"
hx-confirm="Are you sure you want to delete this?">
Delete
</button>
hx-boost for progressive enhancement of links