AcademyRulesDevelopment

HTMX Basic Setup Rules for Cursor

Web development teams building server-rendered pages with HTMX who want Cursor to use its attributes correctly.

  • Recommendedour rating
  • 40,892repository stars
  • CC0-1.0licence
  • 4 months agolast update
mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/htmx-basic-cursorrules-prompt-file.mdc -o .cursor/rules/htmx-basic.mdc
htmx-basic.mdc

Loading the file...

What it does

A Cursor rules file with basic HTMX practices. It lists the main attributes such as hx-get, hx-post, hx-trigger, hx-swap and hx-target, suggests a simple folder layout, and adds notes on semantic HTML, CSRF protection and server-side templating.

Use cases

  1. 01Load part of a page with hx-get and hx-target
  2. 02Show a loading indicator during a request
  3. 03Submit a form with hx-post and swap the result

Questions about
HTMX Basic Setup Rules for Cursor.

What is HTMX Basic Setup Rules for Cursor used for?

Web development teams building server-rendered pages with HTMX who want Cursor to use its attributes correctly. A Cursor rules file with basic HTMX practices. It lists the main attributes such as hx-get, hx-post, hx-trigger, hx-swap and hx-target, suggests a simple folder layout, and adds notes on semantic HTML, CSRF protection and server-side templating.

How do I install HTMX Basic Setup Rules for Cursor?

Run this in your terminal: mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/htmx-basic-cursorrules-prompt-file.mdc -o .cursor/rules/htmx-basic.mdc

Is HTMX Basic Setup Rules for Cursor open source?

Yes. The code is on GitHub (PatrickJS/awesome-cursorrules) under the CC0-1.0 licence.

Is HTMX Basic Setup Rules for Cursor safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.