10 lines
457 B
Plaintext
10 lines
457 B
Plaintext
---
|
|
description: Applies general HTMX best practices to all HTML files in the project, ensuring consistent use of HTMX attributes for requests, content swapping, and user feedback.
|
|
globs: **/*.html
|
|
---
|
|
- Use hx-get for GET requests
|
|
- Implement hx-post for POST requests
|
|
- Utilize hx-trigger for custom events
|
|
- Use hx-swap to control how content is swapped
|
|
- Implement hx-target to specify where to swap content
|
|
- Utilize hx-indicator for loading indicators |