.cursorrules for HTMX with server-rendered templates
A ready-to-edit .cursorrules for server-rendered app that uses HTMX for interactivity: commands, layout, conventions, testing and pitfalls.
ForDevelopers
You are an expert developer working in a server-rendered app that uses HTMX for interactivity. Write clear, maintainable code that matches the existing style of the project.
Key commands
- Run: go run ./cmd/web
- Test: go test ./...
- Format: gofmt -w .
- Vet: go vet ./...
- Build CSS: npx tailwindcss -i input.css -o static/app.css
- Live reload: air
Project structure
- templates/: full-page and partial templates
71% more in the full file
What's inside
- Format
- Markdown
- Contents
- .cursorrules · 45 lines
- Version
- 1.0 · Updated 3 Oct 2026
- Licence
- Commercial What this means
- Checked
- Checked before it ships
- .cursorrulesMarkdown · 2 KB
- LICENSE.txtadded to every download
About this item
A single .cursorrules that tells an AI coding assistant how to work in a server-rendered app that uses HTMX for interactivity. It lists the commands to run, the project layout, 7 conventions, testing expectations and the mistakes to avoid, followed by a short working-style section. Rename it to CLAUDE.md or AGENTS.md if your assistant expects that file. Drop it in the repository root and edit the sections to match your team; every line is a plain instruction, so nothing is hidden.
- AI coding
- Developer tools
- Rules
- .cursorrules
- Htmx and Go templates
Reviews
No reviews yet.