-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Expose the functionality in internal EndpointHtmlRenderer for integrating frameworks #51148
Comments
About a related issue for interactivity to work with both Minimal APIs, and this proposal: #50762 I found a workaround to make interactivity work: https://github.com/marinasundstrom/BlazorMinimalApiTest |
@marinasundstrom in principle I am against us making anything public without a clear scenario that justifies it. Making something like There might be other ways to achieve some scenarios, and we will want to weight the importance of those scenarios against the drawbacks of limiting our options in the futute. Unfortunately, there is no free lunch :(, so I'd rather we discuss specific scenarios to better understand what the options are. |
Thanks for your response, @javiercn. Sure, I would not open that up entirely either. But rather expose the functionality in a way that makes sense to developers, and is safe. It is not an urgent matter. I just thought it would be a possible scenario for a Wordpress.NET application - as I'm contemplating about it. But I can always create a micro-frontend in Blazor instead. But seriously, it should be investigated, what types of integrations there are with Blazor for other kinds of Web apps. In the meantime, while experiment (I stress that I'm experimenting), I can perhaps use reflection to access those hidden classes and properties. |
Thanks for contacting us. We're moving this issue to the |
Thanks for contacting us. You can learn more about our triage process and how we handle issues by reading our Triage Process writeup. |
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
TL;DR; Expose the functionality in the
EndpointHtmlRenderer
so that integrating frameworks can use it to render components, with the potential to be interactive, toHttpContext
.I was looking into using Wordpress.NET as a CMS, and embedding interactive components.
Peachpie (PHP compiler) already supports rendering partial Razor Views, so I investigated whether it was possible to add similar support for Blazor.
Adding support for rendering components as static HTML was pretty easy. But the public API is limited to only rendering static HTML, and not any render mode with interactivity.
My code is here: https://github.com/marinasundstrom/BlazorPhp
Unfortunately, the
EndpointHtmlRenderer
is internal, otherwise I would just plug it in and pass the output to theHttpContext
in my method in Peachpie.Would you consider opening up this internal API?
Tracked in Peachpie repo: peachpiecompiler/peachpie#1124
Describe the solution you'd like
"Open up" (expose) the internal
EndpointHtmlRenderer
API for integrating frameworks - like Peachpie.This will make it possible for them to serve interactive Razor components.
Additional context
No response
The text was updated successfully, but these errors were encountered: