-
Notifications
You must be signed in to change notification settings - Fork 92
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
NET8 Component rendering to HTML for libraries outside Blazor! #139
Comments
Thanks for pointing out, this is very interesting! |
This feature can be used to test the following Razor statements to see if they work correctly. Currently, RazorEngineCore does not support this C# 9 syntax @{
var ss = new { Qt="test"};
string result = "";
switch (ss)
{
case {Qt:"test"}:
result = "show some text";
break;
}
@:@result
} |
After looking deeper, I'm early. They are still arguing about the namespace and firming the architecture. I wouldn't experiment with this until they are done with things like this: They are moving the namespace used by this library. After the move to a final location, we can see how the new API fits into the |
More about: |
It looks like NET8 brings us a new and improved way to render razor with their
HtmlRenderer
!This could be a good opportunity to release a new major version of the RazorEngineCore with breaking changes and the new renderer. This would allow us to close any issues that are blocked due to breaking changes. Leave this version as it for legacy and make a new NET8 version!
https://andrewlock.net/exploring-the-dotnet-8-preview-rendering-blazor-components-to-a-string/
The text was updated successfully, but these errors were encountered: