43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
<%! data *indexData, cssPath string, inlineScript string, scripts []string %>
|
|
|
|
<%% import "github.com/mailru/easyjson" %%>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="theme-color" content="#222">
|
|
|
|
<title>Dispatch</title>
|
|
|
|
<link rel="preload" href="/font/fontello.woff2?48901973" as="font" type="font/woff2" crossorigin="anonymous">
|
|
<link rel="preload" href="/font/RobotoMono-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
|
|
<link rel="preload" href="/font/Montserrat-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
|
|
<link rel="preload" href="/font/Montserrat-Bold.woff2" as="font" type="font/woff2" crossorigin="anonymous">
|
|
<link rel="preload" href="/font/RobotoMono-Bold.woff2" as="font" type="font/woff2" crossorigin="anonymous">
|
|
|
|
<% if cssPath != "" { %>
|
|
<link href="<%== cssPath %>" rel="stylesheet">
|
|
<% } %>
|
|
|
|
<link rel="icon" href="data:;base64,=">
|
|
|
|
<script><%== inlineScript %></script>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="root"></div>
|
|
|
|
<% if data != nil { %>
|
|
<script id="env" type="application/json"><% easyjson.MarshalToWriter(data, w) %></script>
|
|
<% } %>
|
|
|
|
<% for _, script := range scripts { %>
|
|
<script src="<%== script %>"></script>
|
|
<% } %>
|
|
</body>
|
|
|
|
</html>
|