mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-30 23:04:59 +08:00
rename folder
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
---
|
||||
description: Provides additional instructions for HTMX and Flask, primarily related to templating.
|
||||
globs: templates/**/*.*
|
||||
---
|
||||
- Use Jinja2 templating with HTMX attributes
|
||||
- Implement proper CSRF protection with Flask-WTF
|
||||
- Utilize Flask's request object for handling HTMX requests
|
||||
- Use Flask-Migrate for database migrations
|
||||
- Implement proper error handling and logging
|
||||
- Follow Flask's application factory pattern
|
||||
- Use environment variables for configuration
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
description: Enforces a standard folder structure for Flask projects with Python files.
|
||||
globs: *.py
|
||||
---
|
||||
- Define the following folder structure:
|
||||
|
||||
app/
|
||||
templates/
|
||||
static/
|
||||
css/
|
||||
js/
|
||||
models/
|
||||
routes/
|
||||
__init__.py
|
||||
config.py
|
||||
run.py
|
||||
@@ -0,0 +1,10 @@
|
||||
---
|
||||
description: Applies best practices for HTMX and Flask development within the app directory.
|
||||
globs: app/**/*.*
|
||||
---
|
||||
- Use Flask's render_template for server-side rendering
|
||||
- Implement Flask-WTF for form handling
|
||||
- Utilize Flask's url_for for generating URLs
|
||||
- Use Flask's jsonify for JSON responses
|
||||
- Implement Flask-SQLAlchemy for database operations
|
||||
- Utilize Flask's Blueprint for modular applications
|
||||
Reference in New Issue
Block a user