Pages and routing
Map Razor components to routes, render one page per item, link between pages, and publish sitemaps, feeds and images.
You write routes in Program.cs with MapStatic. Bevel renders each route to a file when you export. Your Razor components are the pages.
// One page per item: {Slug} is filled from each session's Slug property.
app.MapStatic<SessionPage>("/sessions/{Slug}", (ISiteData data) => data.Sessions);
Pick the task you need:
Map one component to one route.
Use a route token and an items delegate.
Page a list with
MapStaticPaged.Wrap pages in one layout component.
Build URLs with
ISiteLinks.Serve and export asset folders.
Export XML, JSON, text and calendar files.
List every route Bevel knows.