Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
collage
command
Command collage is the collage CLI: it scaffolds new projects (collage new) and drives an existing project's dev and static-build workflows (collage dev, collage build).
|
Command collage is the collage CLI: it scaffolds new projects (collage new) and drives an existing project's dev and static-build workflows (collage dev, collage build). |
|
internal
|
|
|
build
Package build renders a collage application's cacheable pages to static files on disk.
|
Package build renders a collage application's cacheable pages to static files on disk. |
|
cache
Package cache defines the render-output cache used by the HTTP handler: an interface, a collision-resistant key scheme, and an in-memory implementation.
|
Package cache defines the render-output cache used by the HTTP handler: an interface, a collision-resistant key scheme, and an in-memory implementation. |
|
cli
Package cli implements the collage command-line tool: scaffolding a new project, and driving an existing one's dev and static-build workflows.
|
Package cli implements the collage command-line tool: scaffolding a new project, and driving an existing one's dev and static-build workflows. |
|
core
Package core is the application orchestrator: it owns one instance of every subsystem — the template engine, the render engine, the cache, the dependency tracker, the router, the plugin registry, and observability — and exposes them through a single App with a server lifecycle.
|
Package core is the application orchestrator: it owns one instance of every subsystem — the template engine, the render engine, the cache, the dependency tracker, the router, the plugin registry, and observability — and exposes them through a single App with a server lifecycle. |
|
csrf
Package csrf issues and verifies cross-site request forgery tokens.
|
Package csrf issues and verifies cross-site request forgery tokens. |
|
dependency
Package dependency tracks which cache keys were produced from which dependency tags, and resolves tags back to the keys they invalidate.
|
Package dependency tracks which cache keys were produced from which dependency tags, and resolves tags back to the keys they invalidate. |
|
httpx
Package httpx serves rendered pages over HTTP: it wires the router, the render engine, the cache, the dependency tracker, the plugin registry, and observability into one request lifecycle.
|
Package httpx serves rendered pages over HTTP: it wires the router, the render engine, the cache, the dependency tracker, the plugin registry, and observability into one request lifecycle. |
|
observability
Package observability defines the framework's metrics and tracing interfaces.
|
Package observability defines the framework's metrics and tracing interfaces. |
|
plugin
Package plugin defines the plugin system: the Plugin contract, the narrow Host capability surface plugins receive at startup, and a Registry that owns registration, lifecycle, and hook dispatch.
|
Package plugin defines the plugin system: the Plugin contract, the narrow Host capability surface plugins receive at startup, and a Registry that owns registration, lifecycle, and hook dispatch. |
|
render
Package render composes a page's fragment tree into HTML.
|
Package render composes a page's fragment tree into HTML. |
|
router
Package router resolves incoming HTTP requests to pages, documents, redirects, or a not-found result: a radix tree per locale shared by page and document paths, a shared radix tree for redirects, and locale resolution from the request path — the only source of a locale there is.
|
Package router resolves incoming HTTP requests to pages, documents, redirects, or a not-found result: a radix tree per locale shared by page and document paths, a shared radix tree for redirects, and locale resolution from the request path — the only source of a locale there is. |
|
template
Package template wraps a Go template engine behind a narrow interface so the underlying implementation (currently html/template) can be swapped without touching callers.
|
Package template wraps a Go template engine behind a narrow interface so the underlying implementation (currently html/template) can be swapped without touching callers. |
|
term
Package term decides whether output is going somewhere that can take colour, and writes it either way.
|
Package term decides whether output is going somewhere that can take colour, and writes it either way. |
|
pkg
|
|
|
collage
Package collage is the public API of the collage framework: a Go framework for server-side component-based rendering built from composable fragments and pages.
|
Package collage is the public API of the collage framework: a Go framework for server-side component-based rendering built from composable fragments and pages. |
Click to show internal directories.
Click to hide internal directories.