{"filename":"htmx-flask-cursorrules-prompt-file.mdc","content":"---\ndescription: \"Cursor rules for HTMX development with Flask integration.\"\nglobs: **/*\nalwaysApply: false\n---\n// HTMX with Flask .cursorrules\n\n// HTMX and Flask best practices\n\nconst htmxFlaskBestPractices = [\n  \"Use Flask's render_template for server-side rendering\",\n  \"Implement Flask-WTF for form handling\",\n  \"Utilize Flask's url_for for generating URLs\",\n  \"Use Flask's jsonify for JSON responses\",\n  \"Implement Flask-SQLAlchemy for database operations\",\n  \"Utilize Flask's Blueprint for modular applications\",\n];\n\n// Folder structure\n\nconst folderStructure = `\napp/\n  templates/\n  static/\n    css/\n    js/\n  models/\n  routes/\n  __init__.py\nconfig.py\nrun.py\n`;\n\n// Additional instructions\n\nconst additionalInstructions = `\n1. Use Jinja2 templating with HTMX attributes\n2. Implement proper CSRF protection with Flask-WTF\n3. Utilize Flask's request object for handling HTMX requests\n4. Use Flask-Migrate for database migrations\n5. Implement proper error handling and logging\n6. Follow Flask's application factory pattern\n7. Use environment variables for configuration\n`;\n"}