Skip to content

view/svelte: get ssr and client-side hydration working (WIP)#383

Draft
matthewmueller wants to merge 3 commits intomainfrom
view
Draft

view/svelte: get ssr and client-side hydration working (WIP)#383
matthewmueller wants to merge 3 commits intomainfrom
view

Conversation

@matthewmueller
Copy link
Contributor

@matthewmueller matthewmueller commented Feb 22, 2023

This PR adds replaces the existing view generator with a concept of extendable viewers. Viewers decide how top-level views get rendered.

The goal of this PR is to reach feature parity with the existing view generator. This means:

  • Svelte pages and components
  • SSR rendering
  • DOM hydration
  • Bundling assets for production

.... but lays the groundwork for:

  • React, HTML, html/template views (and any other viewer that implements the interface)
  • Introduces layouts, errors & frame views
  • Adds context support
  • Support custom transpilations (e.g. markdown to HTML)

This PR has been a long time coming and I'm excited to be nearing the finish line.

* package/esb: initial esbuild package rewrite

* package/es: prep for http support, only initialize a new tempdir once per run.

* add todos

* add todos
@matthewmueller matthewmueller mentioned this pull request Apr 9, 2023
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