# Turning it on

> 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 mode of markup is a setting of the package, as markup itself is:

```json
{ "rook": { "markup": "html" } }
```

- `"dom"` is the markup of the browser; `true`, as written now, means `"dom"`.
- `"html"` turns markup into strings of HTML and components into the components of the server
  described here.
- A server in the same repository as the browser code gets a `package.json` of its own in its
  folder, which is how a file finds its settings now (`src/config.ts`), as `site/server/` of this
  repository does. Its `"type": "module"` keeps the compiled `.js` files modules.
- The Vite plugin takes `rook({ markup: "html" })`, the browser compiler `{ markup: "html" }`. The
  CLI reads the setting of the package; its `--markup` is the markup of the browser.

