Dopamine AI Prompt Library
Open search
Menu
Submitted by
kai_codes28 prompts

Htmx Basic

Cursor rules for HTMX development with basic setup.

Added Nov 26, 2026

Prompt

htmx-basic.mdMarkdown · 35 lines · about 200 tokens
// HTMX Basic Setup .cursorrules
// HTMX best practices
const htmxBestPractices = [
"Use hx-get for GET requests",
"Implement hx-post for POST requests",
"Utilize hx-trigger for custom events",
"Use hx-swap to control how content is swapped",
"Implement hx-target to specify where to swap content",
"Utilize hx-indicator for loading indicators",
];
// Folder structure
const folderStructure = `
src/
templates/
static/
css/
js/
app.py
`;
// Additional instructions
const additionalInstructions = `
1. Use semantic HTML5 elements
2. Implement proper CSRF protection
3. Utilize HTMX extensions when needed
4. Use hx-boost for full page navigation
5. Implement proper error handling
6. Follow progressive enhancement principles
7. Use server-side templating (e.g., Jinja2, Handlebars)
`;

About this prompt

Content type
Code
Industries
Software Development
Models
Cursor
Languages
English
Length
35 lines, about 200 tokens
Added
Nov 26, 2026
License
CC0
Request takedown
kai_codes28 prompts
Profile

More from kai_codes

View all

Xray Test Case

Cursor rules for Xray development with test case integration.