mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-29 22:22:55 +08:00
rename folder
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
---
|
||||
description: Provides additional guidelines for HTMX development, focusing on semantic HTML, security, extensions, progressive enhancement, and server-side templating.
|
||||
globs: **/*.html
|
||||
---
|
||||
- Use semantic HTML5 elements
|
||||
- Implement proper CSRF protection
|
||||
- Utilize HTMX extensions when needed
|
||||
- Use hx-boost for full page navigation
|
||||
- Implement proper error handling
|
||||
- Follow progressive enhancement principles
|
||||
- Use server-side templating (e.g., Jinja2, Handlebars)
|
||||
@@ -0,0 +1,10 @@
|
||||
---
|
||||
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
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
description: Enforces a specific folder structure within the 'src' directory for HTMX projects, promoting organization and maintainability of templates, static assets, and application logic.
|
||||
globs: src/**/*.*
|
||||
---
|
||||
- Enforce the following folder structure:
|
||||
|
||||
src/
|
||||
templates/
|
||||
static/
|
||||
css/
|
||||
js/
|
||||
app.py
|
||||
Reference in New Issue
Block a user