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

Make static rendered routes servable and provide context to static_params #2207

Merged
merged 1 commit into from
Jan 21, 2024

Conversation

NiklasEi
Copy link
Contributor

@NiklasEi NiklasEi commented Jan 20, 2024

This removes the .static from file names for static routes. Some cleanup methods no longer made any sense and were removed, too. With this change, the build output from static routes can be served as a static website without any file renaming (see discussion in #1594).

Additional context is provided for the static_params closures.

@NiklasEi
Copy link
Contributor Author

These changes work fine using only static routes and StaticMode::Upfront. I have not tested them with Incremental yet!

@gbj
Copy link
Collaborator

gbj commented Jan 21, 2024

Thanks! This looks good to me (failing CI on one example is unrelated and has been fixed on main already). I appreciate your continuing work here.

@gbj gbj merged commit 997b990 into leptos-rs:main Jan 21, 2024
58 of 60 checks passed
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.

2 participants