compile

package
v0.0.0-...-d651571 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2024 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Copyright (C) 2024 early (LGPL)

Copyright (C) 2024 early (LGPL)

Copyright (C) 2024 early (LGPL)

Copyright (C) 2024 early (LGPL)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	TemplateRaw        string
	TemplateFuncs      template.FuncMap
	TemplateDataLoader render.Loader
}

func Compile

func Compile(root Source, transform ...func(root *html.Node)) (Result, error)

type Source

type Source interface {
	Name() string
	File() include.Opener
	TemplateFuncs() template.FuncMap
	OnLoad() render.OnLoadFunc
	Includes() []Source
}

type Sources

type Sources map[string]Source

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL