-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Support rendering components outside of the HttpContext #38114
Labels
area-blazor
Includes: Blazor, Razor Components
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
feature-prerendering
Issues related to prerendering blazor components
Priority:1
Work that is critical for the release, but we could probably ship without
Milestone
Comments
This was referenced Nov 22, 2021
1 task
1 task
I seen this ticket (#40023) about pre-rendering was closed and that it pointed here to this issue. Would the completion of this issue enable static pre-rendering similar to how this package does: https://github.com/jsakamoto/BlazorWasmPreRendering.Build ? |
1 task
1 task
1 task
1 task
This was referenced Feb 28, 2023
Merged
Done in #46935 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area-blazor
Includes: Blazor, Razor Components
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
feature-prerendering
Issues related to prerendering blazor components
Priority:1
Work that is critical for the release, but we could probably ship without
There has been a historical ask to be able to render UI using Razor without being in the context of a web application. Many of these requests are based on things like generating HTML fragments for sending emails or even generating content for sites statically.
In the past, we've relied on "tricks/hacks" to the Razor View Engine to guide customers on how to accomplish this. However all those "hacks" are very involved and require a lot of setup. Components offer an opportunity to do this with much upfront cost for us and our customers, since they don't have any dependency on the request primitives like the Razor View Engine does.
Being able to have this support also helps with the idea of being able to render root components from ASP.NET Core in the same way we do Razor pages/views and offers several advantages for prerendering scenarios (like dealing with meta/title/etc without hacks) and a path forward for a lighter way of authoring UIs within ASP.NET Core applications.
The text was updated successfully, but these errors were encountered: