Skip to content

feat(ui): render per-element Template attributes - #372

Merged
linkdata merged 2 commits into
mainfrom
feat/template-element-attributes
Aug 21, 2026
Merged

feat(ui): render per-element Template attributes#372
linkdata merged 2 commits into
mainfrom
feat/template-element-attributes

Conversation

@linkdata

@linkdata linkdata commented Aug 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • render wrapper attributes from a Template Dot that implements jaws.InitialHTMLAttrHandler
  • keep ui.Template value-comparable by consuming attributes during initial render instead of retaining them in the Template or Element state
  • define render-parameter precedence over duplicate Dot attributes and pin the emission order in a regression test
  • document initial-only, wrapped-Template behavior and cover equal Template values, container children, parameters, updates, and failure paths

Behavior change

Existing Template Dots that already implement jaws.InitialHTMLAttrHandler now contribute attributes to the generated wrapper during initial render. This includes ui.Object; applications using such a Dot may therefore emit wrapper attributes where none were emitted before.

Testing

  • go generate ./...
  • go vet ./...
  • staticcheck ./...
  • golangci-lint run
  • gosec ./...
  • go build ./...
  • JAWS_REQUIRE_NODE=1 go test -race ./...
  • JAWS_REQUIRE_NODE=1 go test ./...

The optional local 386 runtime leg could not execute on this aarch64 host (exec format error); the CI build-386 job passed on the pushed head.

@linkdata
linkdata merged commit 4c32b8d into main Aug 21, 2026
7 checks passed
@linkdata
linkdata deleted the feat/template-element-attributes branch August 21, 2026 08:55
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.

1 participant