ReactJS
1export const indexTemplate = (content, token) => `2<!DOCTYPE html>
3<html lang="en">
4<head>
5<meta charset="UTF-8">
6<title>Reddit</title>
7<script src="/static/client.js" type="application/javascript"></script>
8<script>
9window.__token__ = '${token}';10</script>
11</head>
12<body>
13<div id="react_root">${content}</div>14</body>
15</html>
16`;