Skip to content

fix(ui)!: default empty Template wrappers to div - #242

Merged
linkdata merged 5 commits into
mainfrom
fix/template-default-wrapper
Aug 7, 2026
Merged

fix(ui)!: default empty Template wrappers to div#242
linkdata merged 5 commits into
mainfrom
fix/template-default-wrapper

Conversation

@linkdata

@linkdata linkdata commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • default empty NewTemplate and RequestWriter.Template wrapper tags to div while keeping Handler whole-page rendering unwrapped
  • require an addressable wrapper for managed Template and Container children, with native {{template ...}} inclusion for unwrapped structural fragments
  • retain RequestWriter.Register as the escape hatch for template-authored DOM while removing the exported ui.Register and ui.NewRegister adapter API
  • document Register ownership, event, tag, attribute, lifecycle, and concurrency contracts in concise caller-facing docs
  • add wire-level regression coverage for removing and reordering default-wrapped Template children

Breaking changes

  • NewTemplate("", ...) and RequestWriter.Template("", ...) now generate a div wrapper instead of rendering unwrapped
  • ui.Register and ui.NewRegister are removed; use RequestWriter.Register for template-authored elements or implement a complete jaws.UI

Verification

  • go generate ./...
  • go vet ./...
  • gofmt -l .
  • staticcheck ./...
  • golangci-lint run
  • gosec ./...
  • JAWS_REQUIRE_NODE=1 go test -race -coverprofile=... ./...
  • JAWS_REQUIRE_NODE=1 go test ./...
  • go build ./...
  • Linux/386 lib/bind test binary cross-compile

Closes #236

@linkdata
linkdata force-pushed the fix/template-default-wrapper branch from 8016032 to 1a7b1bf Compare August 7, 2026 05:43
Keep RequestWriter.Register as the template-authored DOM escape hatch while removing the exported Register and NewRegister adapter API.
@linkdata linkdata changed the title fix(ui): default empty Template wrappers to div fix(ui)!: default empty Template wrappers to div Aug 7, 2026
@linkdata
linkdata merged commit dada0fe into main Aug 7, 2026
7 checks passed
@linkdata
linkdata deleted the fix/template-default-wrapper branch August 7, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(ui): make generated wrappers the public Template default

1 participant