more updates

This commit is contained in:
Henrique Dias
2017-06-19 18:23:57 +01:00
parent af4aaf07df
commit 8c19eda25f
16 changed files with 79 additions and 83 deletions
+10 -1
View File
@@ -11,6 +11,15 @@ import (
"strings"
)
// Create the functions map, then the template, check for erros and
// execute the template if there aren't errors
var functionMap = template.FuncMap{
"Defined": defined,
"CSS": css,
"Marshal": marshal,
"EncodeBase64": encodeBase64,
}
// page contains the informations and functions needed to show the Page
type page struct {
Info *pageInfo
@@ -23,7 +32,7 @@ type pageInfo struct {
Path string
IsDir bool
User *User
Config *Config
Config *FileManager
Data interface{}
Editor bool
Display string