Skip to content

formatString interpolation #7

@23min

Description

@23min

Spec reference

Current behavior
Data binding supports literal values, path-based resolution, and combined literal + path. No support for formatString function.

Required behavior
v0.9 introduces a formatString function that supports ${expression} interpolation syntax in bound values. For example: "Hello, ${/user/name}!" should resolve the path /user/name from the data model and interpolate it into the string.

Affected files

  • src/A2UI.Blazor/Services/SurfaceManager.cs — data binding resolution logic
  • Possibly a new FormatStringResolver service

SPECIFICATION.md reference

  • Data Binding: formatString interpolation row

Acceptance criteria

  • Implementation matches spec
  • Tests added (red-green-refactor)
  • SPECIFICATION.md updated (gap → compliant)
  • Sample servers updated if affected (parity)
  • Sample apps updated if affected (parity)

Metadata

Metadata

Assignees

No one assigned

    Labels

    spec-complianceA2UI specification compliance gap

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions