- Go 98.9%
- HTML 0.7%
- Makefile 0.4%
The .core/ root holds tracked Lethean canon config (go.yaml, build.yaml, agents.yaml, etc.). Only the runtime subdirs (workspace/, vm/, cache/, runtime/) and per-repo runtime artifacts should be gitignored. Brings this repo into the managed canonical set per audit-sweep discovery filter. Co-Authored-By: Cladius Maximus <cladius@lethean.io> |
||
|---|---|---|
| .core | ||
| .forgejo/workflows | ||
| .github/workflows | ||
| docs | ||
| go | ||
| specs | ||
| tests/cli/html | ||
| .editorconfig | ||
| .gitignore | ||
| .golangci.yml | ||
| .woodpecker.yml | ||
| AGENTS.md | ||
| CLAUDE.md | ||
| CONTRIBUTING.md | ||
| go.work | ||
| LICENCE | ||
| Makefile | ||
| README.md | ||
| SESSION-BRIEF.md | ||
| sonar-project.properties | ||
| Taskfile.yaml | ||
go-html
HLCRF DOM compositor with grammar pipeline integration for server-side HTML generation and optional WASM client rendering. Provides a type-safe node tree (El, Text, Raw, If, Each, Switch, Entitled, AriaLabel, AltText, TabIndex, AutoFocus, Role), a five-slot Header/Left/Content/Right/Footer layout compositor with deterministic data-block path IDs and ARIA roles, a responsive multi-variant wrapper, a server-side grammar pipeline (StripTags, GrammarImprint via go-i18n reversal, CompareVariants), a build-time Web Component codegen CLI with optional TypeScript declarations, and a WASM module (2.90 MB raw, 842 KB gzip) exposing renderToString().
Module: dappco.re/go/core/html
Licence: EUPL-1.2
Language: Go 1.26
Quick Start
import html "dappco.re/go/core/html"
page := html.NewLayout("HCF").
H(html.El("nav", html.Text("i18n.label.navigation"))).
C(html.El("main",
html.El("h1", html.Text("i18n.label.welcome")),
html.Each(items, func(item Item) html.Node {
return html.El("li", html.Text(item.Name))
}),
)).
F(html.El("footer", html.Text("i18n.label.copyright")))
rendered := page.Render(html.NewContext("en-GB"))
Documentation
- Architecture — node interface, HLCRF layout, responsive compositor, grammar pipeline, WASM module, codegen CLI
- Development Guide — building, testing, WASM build, server/client split rules
- Project History — completed phases and known limitations
Build & Test
go test ./...
go test -bench . ./...
GOOS=js GOARCH=wasm go build -ldflags="-s -w" -o gohtml.wasm ./cmd/wasm/
go build ./...
Licence
European Union Public Licence 1.2 — see LICENCE for details.