No description
Find a file
2026-03-22 01:28:48 +00:00
.core chore: add .core/ build and release configs 2026-03-06 18:52:36 +00:00
.forgejo/workflows ci: add Forgejo Actions test and security scan workflows 2026-02-23 03:28:02 +00:00
.github/workflows ci: add Core ecosystem CI workflow with CodeRabbit auto-fix 2026-03-17 14:05:43 +00:00
cmd refactor(module): migrate module path from forge.lthn.ai to dappco.re 2026-03-22 01:28:30 +00:00
codegen refactor(module): migrate module path from forge.lthn.ai to dappco.re 2026-03-22 01:28:30 +00:00
docs docs: remove completed Phase 4 plan files 2026-03-14 08:25:06 +00:00
.editorconfig chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:38 +00:00
.gitignore refactor(module): migrate module path from forge.lthn.ai to dappco.re 2026-03-22 01:28:30 +00:00
.golangci.yml chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:38 +00:00
bench_test.go refactor(module): migrate module path from forge.lthn.ai to dappco.re 2026-03-22 01:28:30 +00:00
CLAUDE.md refactor(module): migrate module path from forge.lthn.ai to dappco.re 2026-03-22 01:28:30 +00:00
context.go refactor(module): migrate module path from forge.lthn.ai to dappco.re 2026-03-22 01:28:30 +00:00
CONTRIBUTING.md chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:38 +00:00
edge_test.go refactor(module): migrate module path from forge.lthn.ai to dappco.re 2026-03-22 01:28:30 +00:00
go.mod refactor(module): migrate module path from forge.lthn.ai to dappco.re 2026-03-22 01:28:30 +00:00
go.sum refactor(module): migrate module path from forge.lthn.ai to dappco.re 2026-03-22 01:28:30 +00:00
integration_test.go refactor(module): migrate module path from forge.lthn.ai to dappco.re 2026-03-22 01:28:30 +00:00
layout.go fix(conventions): alias stdlib io, add interface checks, use go-log 2026-03-15 16:40:39 +00:00
layout_test.go feat: add HLCRF Layout type with semantic elements 2026-02-16 23:39:43 +00:00
Makefile fix(dx): update CLAUDE.md size gate, sync Makefile limit, add coverage tests 2026-03-17 08:21:15 +00:00
node.go refactor(module): migrate module path from forge.lthn.ai to dappco.re 2026-03-22 01:28:30 +00:00
node_test.go refactor(module): migrate module path from forge.lthn.ai to dappco.re 2026-03-22 01:28:30 +00:00
path.go feat: modernise to Go 1.26 — iterators, slices/maps, EachSeq 2026-02-23 05:11:22 +00:00
path_test.go feat: add nested layout path chains 2026-02-16 23:40:40 +00:00
pipeline.go refactor(module): migrate module path from forge.lthn.ai to dappco.re 2026-03-22 01:28:30 +00:00
pipeline_test.go refactor(module): migrate module path from forge.lthn.ai to dappco.re 2026-03-22 01:28:30 +00:00
README.md chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:38 +00:00
render.go feat: add render pipeline and validation tests 2026-02-16 23:43:05 +00:00
render_test.go refactor(module): migrate module path from forge.lthn.ai to dappco.re 2026-03-22 01:28:30 +00:00
responsive.go fix: escape variant names, single-pass StripTags, WASM security contract 2026-02-17 00:21:24 +00:00
responsive_test.go test: verify responsive variant path isolation 2026-02-17 00:10:33 +00:00
SESSION-BRIEF.md docs: add session brief for expert agent work 2026-02-19 17:38:47 +00:00

Go Reference License: EUPL-1.2 Go Version

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), 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, and a WASM module (2.90 MB raw, 842 KB gzip) exposing renderToString().

Module: forge.lthn.ai/core/go-html Licence: EUPL-1.2 Language: Go 1.25

Quick Start

import "forge.lthn.ai/core/go-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.