Move ejs templates to views/

Move the ejs templates to the default Express.js views/ folder and
change their extension to .ejs.  Reconfigure Express.js to look for
templates in the views folders as well as the plugins folder.  This
enables plugins to render templates using paths of following format
"pluginName/path/to/page-or-view".
This commit is contained in:
Hornwitser committed 2019-09-18 16:54:11 +02:00
1 parent a4983d75fb
commit a62e8d17a3
12 files changed
+27 -28

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
<!doctype HTML>
<head>
<%- include("head") %>
<script src="lib/terminal.js"></script>
<script src="nodeDetails.js"></script>
<link rel="stylesheet" type="text/css" href="nodeDetails.css">
</head>
<body>
<%- include("nav") %>
<div id="body" class="container">
<div id="hero">
<div id="display">
</div>
</div>
<div id="details">
</div>
<div id="terminal">
<div class="titleBar" style="display:none;">
<div class="title">
<p>Clusterio RCON shell</p>
</div>
<div class="titleButton close" onclick="minimizeTerminal();"></div>
<div class="titleButton maximize" onclick="maximizeTerminal();"></div>
<div class="titleButton minimize" onclick="minimizeTerminal();"></div>
</div>
<!-- JS generates a div called .Terminal that appears here with the display and typing things -->
</div>
</div>
</body>