Documentation
¶
Overview ¶
The apptemplate package implements template parsing and code generation.
Index ¶
Constants ¶
View Source
const ( Static uint = iota Code )
Variables ¶
View Source
var MergeStaticText = true // Concatenate consecutive static sections?
View Source
var Verbose = false
Functions ¶
Types ¶
type Entry ¶
type Entry struct {
GivenPath, HardPath string // GivenPath was passed to buildapp or insert.
FileInfo os.FileInfo // HardPath is an absolute file-system path.
InsertionLine int // InsertionLine is a line number in the parent.
}
Entry contains path and file information about a template.
type Pattern ¶
Pattern helps us keep track of progress in matching a string.
func NewPattern ¶
NewPattern initializes a Pattern for a given string.
Click to show internal directories.
Click to hide internal directories.