Documentation
¶
Overview ¶
Package render provides interfaces and utilities for rendering V2MOM documents to various output formats.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// Theme name (renderer-specific, e.g., "default", "corporate", "minimal")
Theme string
// Terminology mode: "v2mom", "okr", or "hybrid"
Terminology string
// Structure handling: override structure detection ("flat", "nested", "hybrid")
Structure string
// Include project/roadmap slides
IncludeProjects bool
// Include status indicators (colors, badges)
IncludeStatus bool
// FlattenMeasures combines global + nested measures into single view
FlattenMeasures bool
// Custom CSS (for Marp/HTML renderers)
CustomCSS string
// Additional metadata (renderer-specific)
Metadata map[string]string
}
Options contains rendering options common to all renderers.
func DefaultOptions ¶
func DefaultOptions() *Options
DefaultOptions returns sensible default rendering options.
func (*Options) GetStructure ¶
GetStructure returns the structure to use, preferring options over V2MOM inference.
type Renderer ¶
type Renderer interface {
// Render converts a V2MOM to the target format.
Render(v *v2mom.V2MOM, opts *Options) ([]byte, error)
// Format returns the output format name (e.g., "marp", "confluence").
Format() string
// FileExtension returns the file extension for this format (e.g., ".md", ".html").
FileExtension() string
}
Renderer defines the interface for output format renderers.
Click to show internal directories.
Click to hide internal directories.