Rendering Pipeline — BootstrapBuilder

From action items and builders to Bootstrap markup in the final PageBuilder document.

1

Create Component

A Razor view creates a builder or action item through Html or ActionItemFactory . The pipeline starts with a simple fluent method call in your view.

@Html.Button(
    ActionItemFactory.AspRoute("Open", "Documentation", "Index",
        IconStruct.Bootstrap("bi-journal-text"))
        .SetVariant(VariantStyle.Primary)
).Render()
2

Compose Options

Fluent calls set variants, icons, spacing, responsive behavior, routes and classes. Action items carry command intent, route values, icons, titles and variant information.

@Html.CardBuilder()
    .SetTitle("My Card", TitleLevel.Four)
    .SetIconBootstrap("bi-star")
    .SetPadding(SpacingSide.All, SpacingSize.Four)
    .Begin()
3

Resolve Shell Providers

When the layout renders, navigation and profile composers read registered providers from dependency injection to assemble application-level menus, sidebars and breadcrumbs.

// Registered in Program.cs — resolved at layout render time
builder.Services.AddTransient<IMenuBarSectionProvider, MyMenuProvider>();
builder.Services.AddTransient<IProfileBarSectionProvider, MyProfileProvider>();

Render Bootstrap Markup

Builders output structured HTML with Bootstrap classes and attributes. PageBuilder writes the final document using the captured body and page model assembled during the pipeline.

<!-- Final output from the button builder -->
<button type="button" class="btn btn-primary">
    <i class="bi bi-journal-text me-1"></i>Open
</button>
Zero Repetition

Action items and shell providers eliminate duplicated navigation markup — define once, render everywhere through the composer pipeline.

Explore Components

Now that you know how it works, explore buttons, cards, modals and the application shell.

Introduction