# What the compiler has for it

> Status: implemented are markup as HTML, components of the server, their results, `Response`
> going up, `Content<T>`, component values with a result, decorators with guards, wrappers that
> take the body and the request context, routes, and `rooklang/server`; the server of the site, `site/server/main.rk`, is written
> with them, and the guide has a section on them. The decisions are collected at the end of the
> document, together with what is not decided yet. Server markup, components and `rooklang/server`
> remain **experimental** in 1.x and may change between releases.

> This document builds on [components.md](https://github.com/QWERN-9876r/RookLang/blob/HEAD/docs/components.md): components, decorators, context,
> components as values. It describes only what is different on the server.

- **The settings:** `markup: boolean | "html"` in `src/config.ts`, the Vite plugin and the browser
  compiler.
- **The parser:** type parameters of `comp`, the type of the result after the properties, `needs`
  after them, and `await` in the bodies of components and decorators; the type `comp(...) T`.
- **The checker:** the layers `server-markup.ts` (markup of type `Html`, what it can show, what
  waits), `server-components.ts` (the result, inferred or written, bodies checked when their result
  is first needed, `Content<T>`, the context of a use) and `server-decorators.ts` (bodies that wait,
  guards, wrappers of any value, members read from context); `server.ts` has the types of `Html`,
  `Content<T>` and `rooklang/server`.
- **The generator:** the layers `html-markup.ts` (templates of `$$html`) and `server-components.ts`
  (functions of components, their calls, the context); `src/server-context.ts` says what a
  component takes and gives, for the checker and the generator alike.
- **The runtime:** `src/runtime/html.js` (`$$safeHtml`, `$$html`, `$$attr`, `$$need`, `$$provide`) and
  `src/runtime/server.js`, exported as `rooklang/server` (`handler`, `serve`, `reply`, `html`).

