Documentation
¶
Index ¶
- func BuildFlowElements(templateSource, templateName, cssStyle string, data any) ([]pdfdom.PDFElementNode, error)
- func BuildFlowElementsFromSourcesWithFuncs(templateSources []string, templateName, cssStyle string, data any, ...) ([]pdfdom.PDFElementNode, error)
- func BuildFlowElementsFromSourcesWithOptions(templateSources []string, templateName, cssStyle string, data any, ...) ([]pdfdom.PDFElementNode, error)
- func BuildFlowElementsWithFuncs(templateSource, templateName, cssStyle string, data any, ...) ([]pdfdom.PDFElementNode, error)
- type BuildOptions
- type ComplexityBudget
- type ComplexityLimitError
- type PreparationStats
- type PreparedFlow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildFlowElements ¶
func BuildFlowElements(templateSource, templateName, cssStyle string, data any) ([]pdfdom.PDFElementNode, error)
BuildFlowElements executes a named HTML template, applies CSS styling, and converts the resulting document flow into PDFDOM elements.
func BuildFlowElementsFromSourcesWithOptions ¶
func BuildFlowElementsFromSourcesWithOptions(templateSources []string, templateName, cssStyle string, data any, funcs htmltmpl.FuncMap, options BuildOptions) ([]pdfdom.PDFElementNode, error)
func BuildFlowElementsWithFuncs ¶
func BuildFlowElementsWithFuncs(templateSource, templateName, cssStyle string, data any, funcs htmltmpl.FuncMap) ([]pdfdom.PDFElementNode, error)
BuildFlowElementsWithFuncs executes a named HTML template with custom template functions, applies CSS styling, and converts the resulting document flow into PDFDOM elements.
Types ¶
type BuildOptions ¶
type ComplexityBudget ¶
type ComplexityLimitError ¶
func (*ComplexityLimitError) Error ¶
func (e *ComplexityLimitError) Error() string
func (*ComplexityLimitError) Is ¶
func (e *ComplexityLimitError) Is(target error) bool
type PreparationStats ¶
PreparationStats reports parsing performed during this prepared flow's render-scoped lifetime.
type PreparedFlow ¶
type PreparedFlow struct {
// contains filtered or unexported fields
}
PreparedFlow caches immutable parsing work for one render. Callers should create a new instance for each render; no cross-render cache is retained.
func PrepareFlow ¶
func PrepareFlow(templateSources []string, cssStyle string) (*PreparedFlow, error)
PrepareFlow parses reusable template and stylesheet inputs for one render.
func (*PreparedFlow) Build ¶
func (prepared *PreparedFlow) Build(templateName string, data any, funcs htmltmpl.FuncMap, options BuildOptions) ([]pdfdom.PDFElementNode, error)
Build executes one flow section using the render-scoped prepared inputs.
func (*PreparedFlow) Stats ¶
func (prepared *PreparedFlow) Stats() PreparationStats
Stats returns preparation counts. More than one template parse indicates that the render used distinct function-map signatures.