(pos Pos, text string)
| 67 | } |
| 68 | |
| 69 | func (t *Template) newText(pos Pos, text string) *TextNode { |
| 70 | return &TextNode{NodeBase: NodeBase{TemplatePath: t.Name, NodeType: NodeText, Pos: pos}, Text: []byte(text)} |
| 71 | } |
| 72 | |
| 73 | func (t *Template) newPipeline(pos Pos, line int) *PipeNode { |
| 74 | return &PipeNode{NodeBase: NodeBase{TemplatePath: t.Name, NodeType: NodePipe, Pos: pos, Line: line}} |