Remove /XX/ prefix from template binding paths - #690
Merged
Conversation
The framework no longer routes two-way data through a dedicated XX/ view-
model node - every binding now lives on the root model. Update the samples
that referenced the /XX/ model path directly:
- app_173 / app_176: template model paths {template>/XX/...} -> {template>/...}
- app_346: custom JS model.setProperty("/XX/FOCUSCOLUMN"/"/XX/FOCUSROW") ->
root paths
- app_461: comment describing the resolved binding-context paths (the
end-anchored parser already handles the shorter path unchanged)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BRbBrfS2hPi9EFQqjjgfHX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remove the
/XX/prefix from all template binding paths across multiple demo applications. This simplifies the binding syntax by using direct root-level paths instead of the prefixed variant.Changes
/XX/MT_LAYOUTand/XX/MV_FLAGto their unprefixed equivalents/XX/MT_LAYOUTto/MT_LAYOUTin nested view implementation/XX/FOCUSCOLUMNand/XX/FOCUSROWto their unprefixed versions/XX/prefix (e.g.,/T_NODES/0/NODES/1instead of/XX/T_NODES/0/NODES/1)Implementation Details
The changes maintain functional equivalence while standardizing on the simpler binding path format. All affected bindings are in template contexts (template_repeat, template_if) and model property setters.
https://claude.ai/code/session_01BRbBrfS2hPi9EFQqjjgfHX