# Components on the server — design

**English** · [Русский](../../ru/reference/server/index.md)

> 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.

## Chapters

- [Goals](../../reference/server/server-goals/index.md): Goals. Syntax, runtime behavior and examples in the Rook technical reference.
- [Turning it on](../../reference/server/server-config/index.md): The mode of markup is a setting of the package, as markup itself is:
- [Markup as HTML](../../reference/server/html-markup/index.md): Markup as HTML. Syntax, runtime behavior and examples in the Rook technical reference.
- [Components of the server](../../reference/server/server-components/index.md): A component deep in the tree may decide that there is no page at all: a redirect to the login, a 404, a 403. It returns a Response, and when a Response is…
- [Children: Content<T>](../../reference/server/server-children/index.md): A component that wraps others, a middleware, decides whether they run at all. So the children of a component of the server are lazy: they are rendered only…
- [Components as values](../../reference/server/server-component-values/index.md): The type of a component value writes its result after the properties, as the type of a function does; without it, it is Html:
- [Hooks on the server](../../reference/server/server-hooks/index.md): A server component calls a module-local hook with const task = useTask(id). The compiler inlines the hook at the call site in the async component function.…
- [Decorators on the server](../../reference/server/server-decorators/index.md): Decorators keep what they are in the browser: state and functions of their own, public members, context, includes, a wrapper. On the server their body may…
- [Request context](../../reference/server/request-context/index.md): The request, the user who is signed in, the connection to the database for this request: deep components need them, and passing them through every property…
- [The entry point](../../reference/server/server-entry-point/index.md): The root of the tree is a component that takes the request. rooklang/server connects it to a server:
- [Routes](../../reference/server/routes/index.md): route of rooklang/server ties a path to a page. The parameters of the path are the properties of the page, and the compiler checks them against each other:
- [Example: the pieces of a framework](../../reference/server/server-framework/index.md): The router, the middleware and the access checks below are ordinary Rook code; a framework would put such pieces into a library.
- [How it compiles](../../reference/server/server-codegen/index.md): Every component of the server is a function of its properties and the context; markup is a template string. The names inside are internal, as for the…
- [What the compiler has for it](../../reference/server/server-compiler/index.md): What the compiler has for it. Syntax, runtime behavior and examples in the Rook technical reference.
- [Stages](../../reference/server/server-stages/index.md): Stages. Syntax, runtime behavior and examples in the Rook technical reference.
- [Decisions](../../reference/server/server-decisions/index.md): Decisions. Syntax, runtime behavior and examples in the Rook technical reference.
- [Not decided yet](../../reference/server/server-open-questions/index.md): Not decided yet. Syntax, runtime behavior and examples in the Rook technical reference.

