docs: add a name mnemonic to every module README and the root modules table
This commit is contained in:
@@ -4,6 +4,8 @@ Request-scoped actor, organization, collection and locale values carried through
|
||||
|
||||
`import "git.golem15.com/golem15/summercms/modules/towel"`
|
||||
|
||||
**Name:** You carry it everywhere and it marks your spot; it carries the actor, organization and locale through each request.
|
||||
|
||||
## Overview
|
||||
|
||||
`towel` replaces the request-global state that WinterCMS reads through facades (the current locale, the acting user) with explicit values on the request context. Middleware stores a value once, and any code further down the call chain that receives the context reads it back without a global lookup. [surf](../surf/README.md) sets the locale from `Accept-Language` (or the signed-in user's preferred locale) and the organization for every request, [phrasebook](../phrasebook/README.md) reads the locale when it translates, and [cabana](../cabana/README.md) sets it while localizing admin schemas.
|
||||
|
||||
Reference in New Issue
Block a user