compiler

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Compile

func Compile(root string, vars map[string]string, domains []string, devMode bool) error

func CompressHTML

func CompressHTML(buf *[]byte, devMode bool)

func Live

func Live(root string, vars map[string]string, domains []string, devMode bool)

func Markdown

func Markdown(buf *[]byte, domains []string)

func PrintMsg

func PrintMsg(color string, msg string)

PrintMsg prints to console and auto inserts spaces

func ReadFileHTML

func ReadFileHTML(name string, domains []string) ([]byte, map[string]string, error)

func Render

func Render(path string, vars map[string]string, isWidget bool) ([]byte, error)

func WriteFileHTML

func WriteFileHTML(name string, data []byte, root ...string) error

Types

type SegHTML

type SegHTML struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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