Directories
¶
| Path | Synopsis |
|---|---|
|
Package contactform serves a plain HTML contact / feedback form that forwards each submission by mail.
|
Package contactform serves a plain HTML contact / feedback form that forwards each submission by mail. |
|
Package csrf implements the double-submit cookie pattern for plain HTML forms on cacheable pages.
|
Package csrf implements the double-submit cookie pattern for plain HTML forms on cacheable pages. |
|
Package ghrelease resolves the newest downloadable asset of a GitHub repository from the Releases API, so a landing page's download button follows every new release without a redeploy.
|
Package ghrelease resolves the newest downloadable asset of a GitHub repository from the Releases API, so a landing page's download button follows every new release without a redeploy. |
|
Package langpick negotiates a site language from an Accept-Language header and names languages in their own script (endonyms) for language switchers.
|
Package langpick negotiates a site language from an Accept-Language header and names languages in their own script (endonyms) for language switchers. |
|
Package render is HB Labs' own opinionated framework for serving static, multi-language sites with Go html/template.
|
Package render is HB Labs' own opinionated framework for serving static, multi-language sites with Go html/template. |
|
config
Package config is the on-disk configuration surface of the render framework.
|
Package config is the on-disk configuration surface of the render framework. |
|
dev
Package dev wires hot reload onto a render-based service for local development.
|
Package dev wires hot reload onto a render-based service for local development. |
|
og
Package og generates Open Graph PNG cards on demand and caches them via a pluggable Storage so multiple pods don't redo the work.
|
Package og generates Open Graph PNG cards on demand and caches them via a pluggable Storage so multiple pods don't redo the work. |
|
Package rules is the shared catalog of Rule implementations for the rules engine in web/rules/engine.
|
Package rules is the shared catalog of Rule implementations for the rules engine in web/rules/engine. |
|
dev
Package dev wires hot-reload onto a rules engine for local development.
|
Package dev wires hot-reload onto a rules engine for local development. |
|
engine
Package rules is a declarative pipeline engine: business logic lives in Rule structs (one file = one rule), composition lives in YAML, and the Engine sews them together at boot.
|
Package rules is a declarative pipeline engine: business logic lives in Rule structs (one file = one rule), composition lives in YAML, and the Engine sews them together at boot. |
|
Package site is the composition root for an HB Labs web service.
|
Package site is the composition root for an HB Labs web service. |
|
Package siteassets resolves per-site MinIO/S3 assets to their content-addressed counterparts via a manifest emitted by storage-sync.
|
Package siteassets resolves per-site MinIO/S3 assets to their content-addressed counterparts via a manifest emitted by storage-sync. |
|
Package siteinfo is the shared catalog of HB Labs site constants that are neither translatable copy (those live in each service's locales/*.json) nor derived from routing (those come from pageURL / canonical).
|
Package siteinfo is the shared catalog of HB Labs site constants that are neither translatable copy (those live in each service's locales/*.json) nor derived from routing (those come from pageURL / canonical). |
|
Package siteurl holds the environment-aware URL and host helpers every HB Labs site needs at render time: the dev/prod mode check, the localhost→LAN rewrite, the CDN URL composer, and the derived CSP img-src origin.
|
Package siteurl holds the environment-aware URL and host helpers every HB Labs site needs at render time: the dev/prod mode check, the localhost→LAN rewrite, the CDN URL composer, and the derived CSP img-src origin. |
|
Package uikit is the shared visual layer every HB Labs service composes from: design tokens (colors, type, spacing, motion), reset, and the canonical component CSS (buttons, badges, cards, glass surfaces, …).
|
Package uikit is the shared visual layer every HB Labs service composes from: design tokens (colors, type, spacing, motion), reset, and the canonical component CSS (buttons, badges, cards, glass surfaces, …). |
Click to show internal directories.
Click to hide internal directories.