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 ¶
NewTemplate creates a new template from the given string.
Click to show internal directories.
Click to hide internal directories.