forked from hound-search/hound
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content.go
49 lines (38 loc) · 889 Bytes
/
content.go
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
package ui
import "html/template"
// Current versions of some dependencies.
const (
ReactVersion = "0.12.2"
JQueryVersion = "2.1.3"
)
var contents map[string]*content
type content struct {
// The uri for accessing this asset
uri string
// The filename of the template relative to the asset directory
template string
// The JavaScript sources used in this HTML page
sources []string
// This is only created in prd-mode, the pre-parsed template
tpl *template.Template
}
func init() {
// The following are HTML assets that are rendered via
// template.
contents = map[string]*content{
"/": &content{
template: "index.tpl.html",
sources: []string{
"js/common.js",
"js/hound.js",
},
},
"/excluded_files.html": &content{
template: "excluded_files.tpl.html",
sources: []string{
"js/common.js",
"js/excluded_files.js",
},
},
}
}