egil / Htmxor

Supercharges Blazor static server side rendering (SSR) by seamlessly integrating the Htmx.org frontend library.
MIT License
124 stars 13 forks source link

Implement `HxRoute` aware endpoint discovery/mapping #7

Closed egil closed 5 months ago

egil commented 8 months ago

A component can have either or both a [Route] and [HxRoute] attribute. A goal for Htmxor should be to change as little as possible of the normal behavior of Blazor, so whether to use the existing mapping and endpoint handling for components with only the [Route] attribute may be an option.

Currently, it seems components with [Route] attribute is discovered like this: https://source.dot.net/#Microsoft.AspNetCore.Components.Endpoints/Discovery/IRazorComponentApplication.cs,20

This is used from here: https://source.dot.net/#Microsoft.AspNetCore.Components.Endpoints/Builder/RazorComponentsEndpointRouteBuilderExtensions.cs,36

Questions:

egil commented 5 months ago

Done