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.

samples/Bevel.Conference/Program.cscsharp
// 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: