Skip to content

feat(framework): add template resolver (#12)#44

Merged
qantrepreneur merged 2 commits into
mainfrom
12-template-resolver
May 14, 2026
Merged

feat(framework): add template resolver (#12)#44
qantrepreneur merged 2 commits into
mainfrom
12-template-resolver

Conversation

@qantrepreneur
Copy link
Copy Markdown
Contributor

Summary

  • Adds resolveTemplate(templateId, registry) to look up template components
  • Throws descriptive errors listing available templates
  • Handles empty registry with clear message

Test plan

  • Valid lookup returns component
  • Missing template throws with available list
  • Empty registry throws with "no templates" message

Closes #12

🤖 Generated with Claude Code

Lorenzo and others added 2 commits May 14, 2026 18:43
Implement resolveTemplate(templateId, registry) that matches a page
template ID to its registered template component, with descriptive
errors for missing templates and empty registries.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@qantrepreneur qantrepreneur force-pushed the 12-template-resolver branch from 7e7b1e0 to c0c9d6b Compare May 14, 2026 16:43
@qantrepreneur qantrepreneur merged commit c8600b0 into main May 14, 2026
2 checks passed
@qantrepreneur qantrepreneur deleted the 12-template-resolver branch May 14, 2026 16:44
@github-actions github-actions Bot mentioned this pull request May 14, 2026
qantrepreneur added a commit that referenced this pull request May 21, 2026
* feat(framework): add template resolver (#12)

Implement resolveTemplate(templateId, registry) that matches a page
template ID to its registered template component, with descriptive
errors for missing templates and empty registries.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: lint errors in template resolver tests

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Lorenzo <lorenzofkramer@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced May 23, 2026
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.

Template resolver: match page template ID to template component

1 participant