Open AlexZeitler opened 2 years ago
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
This would really make a substantial difference for htmx. Currently one have to put every single bit into a separate component which often becomes cumbersome.
This would also be helpful if you're using vertical slice architecture without HTMX as shown in this video:
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
If you're creating a View which itself consists of multiple partial views you can add more structure to your views.
However, splitting the view into multiple (small) files can become difficult to manage and to reason about.
Describe the solution you'd like
I would like to use it in a way using and extending the existing concept of sections and allow them to have model parameters like Views and Partial Views already have and being able to define them in views and partial views as well.
This is what it could look like:
/Views/Contacts/Contact.cshtml:
From a controller perspective, I should be able to call them also, somewhat similar to partial views:
Additional context
This is inspired by the idea of fragments in this post.
HTML over the wire (Hotwire, Turbo, HTMX etc.) gains more popularity and having this at hand in ASP.NET Core can make it a first class choice for those paradigms.