Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateRenderer ¶
type TemplateRenderer struct {
// contains filtered or unexported fields
}
TemplateRenderer renders dashboards using go-template (Pongo2).
func NewTemplateRenderer ¶
func NewTemplateRenderer(templatesFS fs.FS) (*TemplateRenderer, error)
NewTemplateRenderer creates a renderer with Pongo2 templates.
func (*TemplateRenderer) RenderLayout ¶
func (r *TemplateRenderer) RenderLayout(layout *admin.DashboardLayout) (string, error)
RenderLayout keeps the legacy go-admin contract by delegating to the go-dashboard compatible Render method with the default template.
Click to show internal directories.
Click to hide internal directories.