From 9841fc37c55193b08c637da5e6a7eb9905c53a7c Mon Sep 17 00:00:00 2001
From: Semyon Krestyaninov <krestyaninov@perx.ru>
Date: Wed, 11 Jun 2025 12:52:41 +0300
Subject: [PATCH] fix

---
 template/builder.go | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/template/builder.go b/template/builder.go
index 1674432f..a92e8ca3 100644
--- a/template/builder.go
+++ b/template/builder.go
@@ -3,9 +3,9 @@ package template
 import (
 	"bytes"
 	"context"
-	templhtml "html/template"
+	html "html/template"
 	"io"
-	templtext "text/template"
+	text "text/template"
 
 	"git.perx.ru/perxis/perxis-go/pkg/collections"
 	"git.perx.ru/perxis/perxis-go/pkg/content"
@@ -18,7 +18,7 @@ type Template interface {
 }
 
 type Builder struct {
-	parseFunc func(text string) (Template, error)
+	parseFunc func(data string) (Template, error)
 
 	ctx     context.Context
 	cnt     *content.Content
@@ -41,8 +41,8 @@ func NewBuilder(cnt *content.Content, space, env, col string) Builder {
 		EnvID:   env,
 		CollID:  col,
 	}
-	b.parseFunc = func(text string) (Template, error) {
-		return templtext.New("main_text").Funcs(b.getFuncs()).Parse(text)
+	b.parseFunc = func(data string) (Template, error) {
+		return text.New("main_text").Funcs(b.getFuncs()).Parse(data)
 	}
 	return b
 }
@@ -55,8 +55,8 @@ func NewHTMLBuilder(cnt *content.Content, space, env, col string) Builder {
 		EnvID:   env,
 		CollID:  col,
 	}
-	b.parseFunc = func(text string) (Template, error) {
-		return templhtml.New("main_html").Funcs(b.getFuncs()).Parse(text)
+	b.parseFunc = func(data string) (Template, error) {
+		return html.New("main_html").Funcs(b.getFuncs()).Parse(data)
 	}
 	return b
 }
-- 
GitLab