Skip to content

Is it possible for Leptos CSR to generate static HTML for export? #3039

Answered by gbj
englut asked this question in Q&A
Discussion options

You must be logged in to vote

I think there's maybe a conceptual mismatch here.

For the sake of clarifying terms:

  • CSR = client-side rendering. Runs code in the browser to rendering your application to DOM nodes, by compiling Rust code to WebAssembly (WASM)
  • SSR = server-side rendering. Runs code anywhere for rendering your application to HTML, by compiling Rust code to a whatever native binary format you'd like. "Server side" is something of a misnomer, as it does not require a "server" per se. Rather, this is "rendering HTML in a binary."

So "I'd like to use CSR without WASM" is just not possible.

However, I think what you're asking is whether you can use static site generation without actually running a server. The…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@gbj
Comment options

@englut
Comment options

@gbj
Comment options

@englut
Comment options

@englut
Comment options

Answer selected by englut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants