[tor-commits] [check/master] Parse TorButton template.

arlo at torproject.org arlo at torproject.org
Thu Oct 3 02:04:46 UTC 2013


commit d2705017343513afcc68ab5ab857a06d1ac95c24
Author: Arlo Breault <arlolra at gmail.com>
Date:   Wed Oct 2 19:03:46 2013 -0700

    Parse TorButton template.
---
 utils.go |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/utils.go b/utils.go
index edeed20..46e00b2 100644
--- a/utils.go
+++ b/utils.go
@@ -54,7 +54,10 @@ func CompileTemplate(domain *gettext.Domain, templateName string) *template.Temp
 	if Layout == nil {
 		Layout = template.New("")
 		Layout = Layout.Funcs(FuncMap(domain))
-		Layout, err = Layout.ParseFiles("public/base.html")
+		Layout, err = Layout.ParseFiles(
+			"public/base.html",
+			"public/torbutton.html",
+		)
 		if err != nil {
 			log.Fatal(err)
 		}



More information about the tor-commits mailing list