Skip to content

Improve table-template handling for r-for and component-based rows/cells. - #58

Merged
koculu merged 7 commits into
mainfrom
use-tr-td-in-template-without-table
Feb 21, 2026
Merged

koculu merged 7 commits into
mainfrom
use-tr-td-in-template-without-table

Conversation

@koculu

@koculu koculu commented Feb 21, 2026

Copy link
Copy Markdown
Member

Summary

Improve table-template handling for r-for and component-based rows/cells.

Changes

  • Expanded preprocess table support in src/app/preprocess-template.ts:
    • Handles table, thead, tbody, tfoot contexts.
    • Normalizes invalid direct children in table/row contexts.
    • Keeps alias handling outside table scope (tr/td/th -> trx/tdx/thx).
    • Normalizes self-closing tags under tr to explicit open/close.
  • Updated runtime alias host conversion in src/bind/DynamicBinder.ts for is="r-...".
  • Added/updated tests in:
    • tests/directives/r-for.spec.ts
    • tests/app/preprocess-template.spec.ts
  • Updated docs in:
    • README.md
    • docs-site/src/content/docs/directives/r-for.md
    • docs-site/src/content/docs/directives/is.md
    • docs-site/src/content/docs/api/createApp.md
    • docs-site/src/content/docs/api/createComponent.md

Validation

  • tests/app/preprocess-template.spec.ts passing
  • tests/directives/r-for.spec.ts passing

@koculu
koculu force-pushed the use-tr-td-in-template-without-table branch from 5131621 to d023e89 Compare February 21, 2026 03:11
@koculu
koculu merged commit 9bf7d21 into main Feb 21, 2026
1 check failed
@koculu
koculu deleted the use-tr-td-in-template-without-table branch February 21, 2026 03:19
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