Default view for @type
Add ability to have a rdf-type on a route to indicate that it is a default view for a given resource @type
. If the resource is not specified in a navigation event, the default view is displayed.
Today, a navigate event is triggered with 2 options (route & optional resource):
window.dispatchEvent(
new CustomEvent('navigate', {
detail: { route: routeName, resource: resource },
}),
);
I suggest to be able to trigger a route without specifying the route option.
window.dispatchEvent(
new CustomEvent('navigate', {
detail: { resource: resource },
}),
);
In this case, the route is selected with the @type
of the resource
<sib-router>
<sib-route rdf-type='doap:project' name='project'>
</sib-router>
Goal: If I ask to display a resource, router will automatically select the view able to display this resource