Documentation
¶
Overview ¶
Package bootstrap provides a design system contrib app using Bootstrap 5, Bootstrap Icons, and htmx. It embeds static assets and provides a base HTML layout that can be used as the default layout for all pages. The layout is injected via middleware only when no other layout is already set in the request context.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct{}
App implements a design system contrib app providing Bootstrap CSS/JS and htmx.
func (*App) Dependencies ¶
func (*App) Middleware ¶
Middleware returns middleware that injects the bootstrap layout into the request context when no layout is already set. This makes bootstrap the default layout while allowing srv.SetLayout() or route-level overrides to take precedence.
func (*App) TemplateFS ¶
TemplateFS returns the embedded HTML template files.