- Home
- /
- Design
- /
- DMBBootstrapBuilder
- /
- Architecture
Architecture — BootstrapBuilder
A Bootstrap UI layer built on the PageBuilder rendering lifecycle.
1. Layer Architecture
DMBBootstrapBuilder sits above PageBuilder and turns Bootstrap-oriented UI into composable C# builders. It keeps Bootstrap classes and behaviors available while centralizing repeated markup, action patterns and application shell composition. BootstrapBuilder owns UI vocabulary: components, layout helpers, action items, navigation providers and shell composers.
2. Main Layers
BootstrapBuilder is organised into three layers that cover the full UI composition lifecycle.
Component Layer
Builders for buttons, alerts, cards, modals, tables, layout blocks and common Bootstrap UI primitives.
Html.Button(...)Composer Layer
Navigation, sidebar, breadcrumb, footer, profile and theme composers assemble application-level structure.
IMenuBarSectionProviderAction Layer
Action items normalize links, routes, buttons, groups, toggles and menu entries across the UI.
ActionItemFactory.AspRoute(...)3. Extension Points
Register IMenuBarSectionProvider implementations for application navigation. Create specialized builders when repeated Bootstrap markup becomes a stable pattern. Keep domain workflows in ComponentBuilder and visual treatments in EffectBuilder.
builder.Services.AddTransient<IMenuBarSectionProvider, MyMenuProvider>();
builder.Services.AddTransient<IProfileBarSectionProvider, MyProfileProvider>();
builder.Services.AddTransient<IBreadcrumbComposer, BasicBreadcrumbComposer>();Tech Stack
See it in action
Learn how a Razor call becomes Bootstrap markup in the final PageBuilder document.
Rendering Pipeline