Skip to content

feat(ui): add Template constructor attributes - #383

Merged
linkdata merged 2 commits into
mainfrom
feat/template-constructor-attrs
Aug 24, 2026
Merged

feat(ui): add Template constructor attributes#383
linkdata merged 2 commits into
mainfrom
feat/template-constructor-attrs

Conversation

@linkdata

Copy link
Copy Markdown
Owner

Summary

  • Let ui.NewTemplate accept trusted raw wrapper attributes directly.
  • Keep Template value-comparable by joining constructor attributes into one definition field.
  • Preserve attribute precedence: render parameters, constructor attributes, then Dot attributes.
  • Reuse children for equal definitions and replace them when constructor attributes change.

Verification

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

The optional 386 runtime leg was not run on this aarch64 host.

@linkdata
linkdata merged commit 4e8540a into main Aug 24, 2026
7 checks passed
@linkdata
linkdata deleted the feat/template-constructor-attrs branch August 24, 2026 08:23
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