{"filename":"htmx-basic-cursorrules-prompt-file.mdc","content":"---\ndescription: \"Cursor rules for HTMX development with basic setup.\"\nglobs: **/*\nalwaysApply: false\n---\n// HTMX Basic Setup .cursorrules\n\n// HTMX best practices\n\nconst htmxBestPractices = [\n  \"Use hx-get for GET requests\",\n  \"Implement hx-post for POST requests\",\n  \"Utilize hx-trigger for custom events\",\n  \"Use hx-swap to control how content is swapped\",\n  \"Implement hx-target to specify where to swap content\",\n  \"Utilize hx-indicator for loading indicators\",\n];\n\n// Folder structure\n\nconst folderStructure = `\nsrc/\n  templates/\n  static/\n    css/\n    js/\n  app.py\n`;\n\n// Additional instructions\n\nconst additionalInstructions = `\n1. Use semantic HTML5 elements\n2. Implement proper CSRF protection\n3. Utilize HTMX extensions when needed\n4. Use hx-boost for full page navigation\n5. Implement proper error handling\n6. Follow progressive enhancement principles\n7. Use server-side templating (e.g., Jinja2, Handlebars)\n`;\n"}