Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

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.

None yet

1 participant