Stages
Components on the server — design
Status: implemented are markup as HTML, components of the server, their results,
Responsegoing up,Content<T>, component values with a result, decorators with guards, wrappers that take the body and the request context, routes, androoklang/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 androoklang/serverremain experimental in 1.x and may change between releases.
This document builds on components.md: components, decorators, context, components as values. It describes only what is different on the server.
Markup as HTML and components as async functions that returnDone.Html; the errors for what the server has not.The resultDone.T,Responsegoing up,handler,serveandreply.Done.Content<T>and type parameters of components; component values with a result.Decorators on the server:Done.await, guards, request context.The site:Done: the server issite/server.rkwritten with components, a section of the guide and an example, in both languages; highlighting ofcomp X<T>() T.site/server/main.rk, the section "Components on the server". A program of the site that importsrooklang/serveris compiled with markup as HTML, the setting of a package that the page has not; it does not run on the page yet.