summary refs log tree commit diff stats
path: root/lib/templates
diff options
context:
space:
mode:
Diffstat (limited to 'lib/templates')
-rw-r--r--lib/templates/template.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/templates/template.go b/lib/templates/template.go
index 1c7b546..f979ba2 100644
--- a/lib/templates/template.go
+++ b/lib/templates/template.go
@@ -211,17 +211,3 @@ func ParseTemplateFromFile(templateName string, templateDirs []string, data inte
 	}
 	return &body, nil
 }
-
-func ParseTemplate(templateText string, data interface{}) ([]byte, error) {
-	emailTemplate, err :=
-		template.New("email_template").Funcs(templateFuncs).Parse(templateText)
-	if err != nil {
-		return nil, err
-	}
-
-	var outString bytes.Buffer
-	if err := emailTemplate.Execute(&outString, data); err != nil {
-		return nil, err
-	}
-	return outString.Bytes(), nil
-}
>^
b60999c ^
2a09617 ^
d394fd1 ^

6838c23 ^
2a09617 ^


6838c23 ^
2a09617 ^
b60999c ^

6838c23 ^
d394fd1 ^
24daef8 ^
d394fd1 ^







24daef8 ^
d394fd1 ^

b60999c ^
9e28a02 ^


3650b72 ^



d394fd1 ^
b60999c ^

2a09617 ^

feacca3 ^
2a09617 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53