WORK-268
Setting up your dashboard 0 entities found · 7/33 branches scanned
ID:WORK-268Status:pending

entityRoutes config-rules adapter

The built-in adapter (in @refrakt-md/content) that turns site.entityRoutes into contributed pages: selects entities by type + filter, substitutes placeholders, renders an inline render string or a render-template partial per entity with $item bound, and back-fills sourceUrl.

Priority:highComplexity:complexMilestone:v0.16.0Source:SPEC-069

Criteria completion

Criteria completion: 0 of 6 (0%) checked; tracking started on May 25, no incremental history yet0%25%50%75%100%May 25Jun 15

Tracking started May 25 — check back for trends.

Acceptance Criteria

  • SiteConfig.entityRoutes accepts { type, filter?, url, title?, render | render-template, frontmatter? } (render / render-template mutually exclusive)
  • type (comma-separated) + optional filter select entities via the shared parser (WORK-261)
  • {name} placeholder substitution from top-level + data fields; url per-segment encoded and site-root-relative (basePath applied, like a path-derived URL)
  • $item bound in render / render-template per the pinned contract; one page per matched entity; URL collisions error
  • Optional title feeds the page's frontmatter title (omitted → falls back to rendered H1); render-template resolved via the partial + file-roots machinery
  • Each matched entity's sourceUrl is back-filled with the generated route URL before the postProcess xref pass

Dependencies

  • WORK-267 (contributePages phase)
  • WORK-261 (shared field-match parser)
  • WORK-262 (deferred-body capture, for render templates)

References

  • SPEC-069