-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.ego.go
151 lines (148 loc) · 3.97 KB
/
index.ego.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
package template
//line index.ego:3
import (
"fmt"
"io"
"os"
)
//line index.ego:1
func (t *Template) Index(w io.Writer) error {
//line index.ego:2
if _, err := fmt.Fprintf(w, "\n\n"); err != nil {
return err
}
//line index.ego:10
if _, err := fmt.Fprintf(w, "\n\n"); err != nil {
return err
}
//line index.ego:12
hostname, _ := os.Hostname()
if hostname == "" {
hostname = "HOSTNAME"
}
//line index.ego:18
if _, err := fmt.Fprintf(w, "\n\n"); err != nil {
return err
}
//line index.ego:19
if _, err := fmt.Fprintf(w, "<!DOCTYPE html>\n"); err != nil {
return err
}
//line index.ego:20
if _, err := fmt.Fprintf(w, "<html lang=\"en\">\n "); err != nil {
return err
}
//line index.ego:21
t.Head(w, "")
//line index.ego:22
if _, err := fmt.Fprintf(w, "\n\n "); err != nil {
return err
}
//line index.ego:23
if _, err := fmt.Fprintf(w, "<body id=\"index\">\n "); err != nil {
return err
}
//line index.ego:24
if _, err := fmt.Fprintf(w, "<div class=\"container\">\n "); err != nil {
return err
}
//line index.ego:25
t.Nav(w)
//line index.ego:26
if _, err := fmt.Fprintf(w, "\n\n "); err != nil {
return err
}
//line index.ego:27
if _, err := fmt.Fprintf(w, "<!-- Main component for a primary marketing message or call to action -->\n "); err != nil {
return err
}
//line index.ego:28
if _, err := fmt.Fprintf(w, "<div class=\"jumbotron\">\n "); err != nil {
return err
}
//line index.ego:29
if _, err := fmt.Fprintf(w, "<h1>Welcome to Skybox"); err != nil {
return err
}
//line index.ego:29
if _, err := fmt.Fprintf(w, "</h1>\n "); err != nil {
return err
}
//line index.ego:30
if _, err := fmt.Fprintf(w, "<p>\n Skybox is a tool for tracking user events and querying them through funnel analysis.\n Funnel analysis is a way to see how users in your application move through multi-step tasks (such as signing up or purchasing).\n "); err != nil {
return err
}
//line index.ego:33
if _, err := fmt.Fprintf(w, "</p>\n\n "); err != nil {
return err
}
//line index.ego:35
if _, err := fmt.Fprintf(w, "<p>\n To add event tracking to your application, simple copy the following HTML snippet and paste it into your code:\n "); err != nil {
return err
}
//line index.ego:37
if _, err := fmt.Fprintf(w, "</p>\n\n "); err != nil {
return err
}
//line index.ego:39
if _, err := fmt.Fprintf(w, "<pre>\n<script type=\"text/javascript\" src=\"//"); err != nil {
return err
}
//line index.ego:40
if _, err := fmt.Fprintf(w, "%v", hostname); err != nil {
return err
}
//line index.ego:40
if _, err := fmt.Fprintf(w, "/skybox.js\" async\n data-api-key=\""); err != nil {
return err
}
//line index.ego:41
if _, err := fmt.Fprintf(w, "%v", t.Account.APIKey); err != nil {
return err
}
//line index.ego:41
if _, err := fmt.Fprintf(w, "\">\n</script>\n "); err != nil {
return err
}
//line index.ego:43
if _, err := fmt.Fprintf(w, "</pre>\n "); err != nil {
return err
}
//line index.ego:44
if _, err := fmt.Fprintf(w, "<p>\n "); err != nil {
return err
}
//line index.ego:45
if _, err := fmt.Fprintf(w, "<a class=\"btn btn-lg btn-primary\" href=\"https://github.com/skybox/skybox\" target=\"_blank\" role=\"button\">Find us on Github »"); err != nil {
return err
}
//line index.ego:45
if _, err := fmt.Fprintf(w, "</a>\n "); err != nil {
return err
}
//line index.ego:46
if _, err := fmt.Fprintf(w, "</p>\n "); err != nil {
return err
}
//line index.ego:47
if _, err := fmt.Fprintf(w, "</div>\n\n "); err != nil {
return err
}
//line index.ego:49
if _, err := fmt.Fprintf(w, "</div> "); err != nil {
return err
}
//line index.ego:49
if _, err := fmt.Fprintf(w, "<!-- /container -->\n "); err != nil {
return err
}
//line index.ego:50
if _, err := fmt.Fprintf(w, "</body>\n"); err != nil {
return err
}
//line index.ego:51
if _, err := fmt.Fprintf(w, "</html>\n\n"); err != nil {
return err
}
return nil
}