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

Add Razor Component templating for Minimal Api #60522

Open
1 task done
ziaulhasanhamim opened this issue Feb 20, 2025 · 1 comment
Open
1 task done

Add Razor Component templating for Minimal Api #60522

ziaulhasanhamim opened this issue Feb 20, 2025 · 1 comment
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. question Status: Resolved

Comments

@ziaulhasanhamim
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

There is no proper way to create server-rendered apps using minimal APIs. Despite all the hype about single-page applications and progressive web apps, server-rendered websites are still better for many use cases. However, unlike web APIs, server-rendered websites didn't undergo much modernization in .NET. In .NET 8, we got Blazor SSR, which, when combined with minimal APIs, can be a great way to create server-rendered websites.

Describe the solution you'd like

Razor components represent a modern approach for rendering HTML dynamically in .NET. While they can be utilized with minimal APIs via RazorComponentResult, this method lacks practicality. A well-established framework for creating websites using minimal APIs and razor components would be highly beneficial. Much like minimal APIs, it would attract new programmers.
This is a prototype project demonstrating the advantages of this approach. However, it does not fully showcase the potential of this approach, as it is just some workarounds and it is quite verbose.

Additional context

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Feb 20, 2025
@javiercn
Copy link
Member

@ziaulhasanhamim thanks for contacting us.

This is not a direction we currently plan to take in the foreseeable future; we are focusing on improvements to the existing framework which we believe offers a more general and structured approach to building web applications.

@javiercn javiercn added question ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. labels Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. question Status: Resolved
Projects
None yet
Development

No branches or pull requests

2 participants