Browse Source

Getting rid of view package

Wirecog 7 years ago
parent
commit
c3ef879aa8
1 changed files with 0 additions and 17 deletions
  1. 0
    17
      view/render.go

+ 0
- 17
view/render.go View File

@@ -1,17 +0,0 @@
1
-package view
2
-
3
-import (
4
-	"html/template"
5
-	"log"
6
-	"net/http"
7
-)
8
-
9
-// Template rendering function
10
-func RenderTemplate(w http.ResponseWriter, templateFile string, templateData interface{}) {
11
-
12
-	t, err := template.ParseFiles(templateFile)
13
-	if err != nil {
14
-		log.Fatal("Error encountered while parsing the template: ", err)
15
-	}
16
-	t.Execute(w, templateData)
17
-}