Something went wrong. Try again.
Cooperative email for PDS operators
Something went wrong. Try again.
1.1 kB · 27 lines
Go
at main
12345678910111213141516171819202122232425262728// SPDX-License-Identifier: AGPL-3.0-or-later
// Package web is the canonical home for comail's frontend// assets. The Go package only exists to expose embed.FS handles to the// HTTP handlers that serve /ui/static/*; the templates themselves live// in the sibling web/templates package, and design tokens / stylesheets// will land in web/styles when the Tailwind pipeline ships.package web
import "embed"
// StaticFiles bundles everything under web/static/* into the binary.// The /ui/static/ HTTP handler in internal/admin/ui/handlers.go serves// from this. Path is relative to this file's directory.////go:embed static/*var StaticFiles embed.FS
// StyleFiles bundles everything under web/styles/*.css into the binary.// The /ui/styles/ HTTP handler in internal/admin/ui/handlers.go serves// from this. Path is relative to this file's directory. Stylesheets// were extracted from inline <style> blocks in layout.templ /// public_layout.templ (#359) so future Tailwind / design-token work// has a single canonical location to compile from.////go:embed styles/*.cssvar StyleFiles embed.FS