fix(engine): allow template override

This commit is contained in:
Jan De Dobbeleer 2022-01-28 13:41:20 +01:00 committed by Jan De Dobbeleer
parent c94e5e6efb
commit e95e0d6b1b

View file

@ -150,8 +150,9 @@ const (
)
func (segment *Segment) string() string {
segmentTemplate := segment.Properties.GetString(properties.SegmentTemplate, segment.writer.Template())
tmpl := &template.Text{
Template: segment.writer.Template(),
Template: segmentTemplate,
Context: segment.writer,
Env: segment.env,
}