diff --git a/README.md b/README.md index 507bc63..a04c685 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Go Reference](https://pkg.go.dev/badge/forge.lthn.ai/core/go-html.svg)](https://pkg.go.dev/forge.lthn.ai/core/go-html) +[![Go Reference](https://pkg.go.dev/badge/dappco.re/go/core/html.svg)](https://pkg.go.dev/dappco.re/go/core/html) [![License: EUPL-1.2](https://img.shields.io/badge/License-EUPL--1.2-blue.svg)](LICENSE.md) [![Go Version](https://img.shields.io/badge/Go-1.26-00ADD8?style=flat&logo=go)](go.mod) @@ -6,14 +6,14 @@ 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), 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` +**Module**: `dappco.re/go/core/html` **Licence**: EUPL-1.2 -**Language**: Go 1.25 +**Language**: Go 1.26 ## Quick Start ```go -import "forge.lthn.ai/core/go-html" +import html "dappco.re/go/core/html" page := html.NewLayout("HCF"). H(html.El("nav", html.Text("i18n.label.navigation"))). diff --git a/cmd/codegen/main.go b/cmd/codegen/main.go index 3874c2f..6697c7d 100644 --- a/cmd/codegen/main.go +++ b/cmd/codegen/main.go @@ -12,7 +12,6 @@ package main import ( "context" - "errors" "flag" goio "io" "os" @@ -92,7 +91,7 @@ func runDaemon(ctx context.Context, inputPath, outputPath string, emitTypes bool select { case <-ctx.Done(): - if errors.Is(ctx.Err(), context.Canceled) { + if core.Is(ctx.Err(), context.Canceled) { return nil } return ctx.Err() diff --git a/docs/index.md b/docs/index.md index 2d3385f..5db9bfa 100644 --- a/docs/index.md +++ b/docs/index.md @@ -7,7 +7,7 @@ description: HLCRF DOM compositor with grammar pipeline integration for type-saf `go-html` is a pure-Go library for building HTML documents as type-safe node trees and rendering them to string output. It provides a five-slot layout compositor (Header, Left, Content, Right, Footer -- abbreviated HLCRF), a responsive multi-variant wrapper, a server-side grammar analysis pipeline, a Web Component code generator, and an optional WASM module for client-side rendering. -**Module path:** `forge.lthn.ai/core/go-html` +**Module path:** `dappco.re/go/core/html` **Go version:** 1.26 **Licence:** EUPL-1.2 @@ -16,7 +16,7 @@ description: HLCRF DOM compositor with grammar pipeline integration for type-saf ```go package main -import html "forge.lthn.ai/core/go-html" +import html "dappco.re/go/core/html" func main() { page := html.NewLayout("HCF"). @@ -65,14 +65,17 @@ This builds a Header-Content-Footer layout with semantic HTML elements (`