-
Notifications
You must be signed in to change notification settings - Fork 569
Open
Description
Definition:
// TemplateNode represents a {{template}} action.
type TemplateNode struct {
NodeType
Pos
tr *Tree
Line int // The line number in the input. Deprecated: Kept for compatibility.
Name string // The name of the template (unquoted).
Pipe *PipeNode // The command to evaluate as dot for the template.
}
Usage:
func (t *TemplateNode) String() string {
if t.P<caret>ipe == nil {
return fmt.Sprintf("{{template %q}}", t.Name)
}
return fmt.Sprintf("{{template %q %s}}", t.Name, t.Pipe)
}
Should show The command to evaluate as dot for the template.
EliCDavis, dharnitski, lzambarda, ludanin, dimovnike and 3 more