forked from gabrielbull/react-router-server-complex-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ejs
More file actions
20 lines (19 loc) · 690 Bytes
/
Copy pathindex.ejs
File metadata and controls
20 lines (19 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="/app.css">
<% if (typeof files !== 'undefined') { %>
<% files.forEach(function (file) { %>
<link rel="preload" href="/<%- file %>" as="script">
<% }); %>
<% } %>
</head>
<body>
<div id="main"><% if (typeof html !== 'undefined') { %><%- html %><% } %></div>
<script>
window.__INITIAL_STATE__ = <% if (typeof state !== 'undefined' && state) { %><%- JSON.stringify(state) %><% } else { %>null<% } %>;
window.__INITIAL_MODULES__ = <% if (typeof modules !== 'undefined' && modules) { %><%- JSON.stringify(modules) %><% } else { %>null<% } %>;
</script>
<script src="/app.js"></script>
</body>
</html>