# Server-rendered HTML with HTMX

A step of the [Cloud application](https://gradus.kazet.blog/tree/cloud-application) tree on Gradus, in the Frontend area: Second app, UI, browser tests.

Page: https://gradus.kazet.blog/tree/cloud-application/step/frontend-htmx

Serve HTML from the service itself with a template engine and HTMX for partial updates, with one page that shows the health route's answer.

One option of Frontend approach: Server-rendered HTML with HTMX. The others: React with Vite.

Usually comes after: [Choose a frontend approach](https://gradus.kazet.blog/tree/cloud-application/step/choose-frontend).

## Prompt for your AI assistant

```
Add server-rendered HTML to the service: a template engine for its stack, a layout template, HTMX loaded from a pinned version and one page at / that shows the /health route's answer and refreshes it with an HTMX request. Keep templates in one folder, add a test that renders the page and document the one command that runs it in the README.
```

Every step of the tree: https://gradus.kazet.blog/tree/cloud-application/llms.txt
