Change extension fron .ejs to .html

This commit is contained in:
Danielv123 committed 2017-07-10 14:57:48 +02:00
1 parent 39dcb43199
commit 5d294c3a62
6 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
"factorioDirectory": "factorio",
"__comment": "IP players should connect to to join your servers, should be portforwarded and stuff",
"publicIP": "192.168.10.1",
"publicIP": "localhost",
"__comment": "IP the master web server runs at, can be ignored on the master system",
"masterIP": "localhost",
+2 -1
View File
@@ -28,7 +28,8 @@ app.use(fileUpload());
// dynamic HTML generations with EJS
app.set('views', path.join(__dirname, 'static'));
app.set('view engine', 'ejs');
app.set('view engine', 'html');
app.engine('html', ejs.renderFile);
var routes = require("./routes.js");
routes(app);
File renamed without changes.
@@ -1,6 +1,8 @@
<!doctype HTML>
<head>
<%- include("head.html") %>
<script src="https://code.jquery.com/jquery.js"></script>
<script src="lib/terminal.js"></script>
<script src="nodeDetails.js"></script>
<link rel="stylesheet" type="text/css" href="nodeDetails.css">
</head>
File renamed without changes.
File renamed without changes.