tmpl

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Part

type Part struct {
	// Static indicates whether the content is static or dynamic.
	Static bool
	// Content represents the content of the template part.
	Content string
	// Node represents the node associated with the template part.
	Node *models.Node
}

Part represents a part of a template.

func NewTemplate

func NewTemplate(s string) ([]Part, error)

NewTemplate creates a new template from the given string.

Jump to

Keyboard shortcuts

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