I want to programmatically generate a list of menus by iterating through the routable Razor component names as follows. How to implement GetAllRoutableRazorComponentNames() below? Is it possible?
@foreach (var filename in GetAllRoutableRazorComponentNames())
{
<li class="nav-item px-3">
<NavLink class="nav-link" href="@filename">
<span class="oi oi-list-rich" aria-hidden="true">@filename</span>
</NavLink>
</li>
}