Documentation
¶
Overview ¶
Package web is the public site: what an anonymous visitor sees at the root of a tenant's host. It renders what the site module's settings and the content module's published pages say, and writes nothing of its own — a shell composed from ui/page and ui/components the way the admin is, with a bar where the admin has a sidebar, and no controller of its own: the only script a page may carry is the shared snippet that applies a theme the visitor stored, and a page whose theme the tenant pinned carries none.
It is composed in the reference application and left out of one that has a storefront of its own: the root belongs to one module, and two claiming it is a boot failure rather than a coin toss. The module has no permissions, no events, no jobs and no table; everything it shows is another module's.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Deps ¶
type Deps struct {
Site sitecontracts.Service
Content contentcontracts.Service
Theme design.Pair
}
Deps is what the site reads: the settings, the published pages, and the palette the stylesheet is composed from. Both services are required.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package internal is the site's pages: the home, one published page, and the two things a visitor sees when there is nothing to show.
|
Package internal is the site's pages: the home, one published page, and the two things a visitor sees when there is nothing to show. |