Skip to content

feat(framework): add SSR render pipeline#55

Merged
qantrepreneur merged 1 commit into
mainfrom
13-ssr-render-pipeline
May 14, 2026
Merged

feat(framework): add SSR render pipeline#55
qantrepreneur merged 1 commit into
mainfrom
13-ssr-render-pipeline

Conversation

@qantrepreneur
Copy link
Copy Markdown
Contributor

Summary

  • Add renderPage function that composes the full SSR render pipeline: calls defineSlots with loader data, resolves meta (static object or function), builds <head> content (charset, viewport, title, description, CSS link), wraps template in SlotProvider, renders to HTML string, and returns a Response with DOCTYPE and correct content-type header
  • Export renderPage from the framework package
  • 8 unit tests covering: basic render, static meta, dynamic meta, no meta, CSS href, multiple slots, content-type header, and loaderData passthrough

Closes #13

Test plan

  • All 8 new tests pass (pnpm vitest run)
  • Full test suite passes (104 tests)
  • Type check passes (pnpm check-types)
  • Code formatted (pnpm format)

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@qantrepreneur qantrepreneur force-pushed the 13-ssr-render-pipeline branch from ec2b855 to dc352b0 Compare May 14, 2026 17:44
@qantrepreneur qantrepreneur merged commit 936491b into main May 14, 2026
2 checks passed
@qantrepreneur qantrepreneur deleted the 13-ssr-render-pipeline branch May 14, 2026 17:47
@github-actions github-actions Bot mentioned this pull request May 14, 2026
qantrepreneur added a commit that referenced this pull request May 21, 2026
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.

SSR render pipeline: template + slots to HTML Response

1 participant