summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorJulien Dessaux2022-10-23 23:29:46 +0200
committerJulien Dessaux2022-10-23 23:29:46 +0200
commitcd33314d50986c5b143bf579d47f5ffdbe922e0f (patch)
tree1d90e2656f968a919dd4fa3f6063f0baf6ffb9f8 /views
parentBegan writing an express backend (diff)
downloadjeux-de-mots-cd33314d50986c5b143bf579d47f5ffdbe922e0f.tar.gz
jeux-de-mots-cd33314d50986c5b143bf579d47f5ffdbe922e0f.tar.bz2
jeux-de-mots-cd33314d50986c5b143bf579d47f5ffdbe922e0f.zip
Get started with ejs templating
Diffstat (limited to '')
-rw-r--r--views/index.ejs23
1 files changed, 1 insertions, 22 deletions
diff --git a/views/index.ejs b/views/index.ejs
index f3784a2..4e691f7 100644
--- a/views/index.ejs
+++ b/views/index.ejs
@@ -42,27 +42,6 @@
<p id="remaining_letters"></p>
</main>
</body>
- <script>
- var CWDATA = {
- board: [
- [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ],
- [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ],
- [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ],
- [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ],
- [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ],
- [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ],
- [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ],
- [ "", "", "", "", "","", "", "T", "E", "S","T", "", "", "", "" ],
- [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ],
- [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ],
- [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ],
- [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ],
- [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ],
- [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ],
- [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ]
- ],
- letters: [ "A", "B", "C", "D", "E", "F", "JOKER" ]
- };
- </script>
+ <script>var CWDATA = <%- JSON.stringify(CWDATA) %>;</script>
<script type="module" src="index.js"></script>
</html>