diff options
author | Unknwon <u@gogs.io> | 2015-12-13 23:16:58 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-13 23:16:58 -0500 |
commit | ea375c0dcca118c8ac3c48ba569b025836ad5ccf (patch) | |
tree | c98d8c3b631cfe7466216dfea24a172116abfd72 /modules/template | |
parent | 7509fa2c33b6eeff20091a4c6883c006d99b3425 (diff) | |
download | gitea-ea375c0dcca118c8ac3c48ba569b025836ad5ccf.tar.gz gitea-ea375c0dcca118c8ac3c48ba569b025836ad5ccf.zip |
new template func
Diffstat (limited to 'modules/template')
-rw-r--r-- | modules/template/template.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/template/template.go b/modules/template/template.go index cc670a651f..638febe89d 100644 --- a/modules/template/template.go +++ b/modules/template/template.go @@ -34,6 +34,9 @@ var Funcs template.FuncMap = map[string]interface{}{ "AppSubUrl": func() string { return setting.AppSubUrl }, + "AppUrl": func() string { + return setting.AppUrl + }, "AppVer": func() string { return setting.AppVer }, |