Htmx Flask
Cursor rules for HTMX development with Flask integration.
Awesome CursorRulesv10 stars · 0 forks · 0 makes≈241 tokens
// HTMX with Flask .cursorrules
// HTMX and Flask best practices
const htmxFlaskBestPractices = [ "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", ];
// Folder structure
const folderStructure = app/ templates/ static/ css/ js/ models/ routes/ __init__.py config.py run.py;
// Additional instructions
const additionalInstructions = `
- 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 `;