aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@nebulon.de>2015-06-27 21:35:39 +0200
committerJohannes Zellner <johannes@nebulon.de>2015-06-27 21:35:39 +0200
commit9f18a84b78af93bc06c8256852e7f43369c34d42 (patch)
treef205321a1d7cb25796a59a32c313d10c29113ccf /src
parenta46d643ec61c7519dd9d3b9faa29130b154159ce (diff)
downloadSurfer-9f18a84b78af93bc06c8256852e7f43369c34d42.tar.gz
Surfer-9f18a84b78af93bc06c8256852e7f43369c34d42.tar.zst
Surfer-9f18a84b78af93bc06c8256852e7f43369c34d42.zip
Dynamically use HOSTNAME in welcome screen
Diffstat (limited to 'src')
-rw-r--r--src/files.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/files.js b/src/files.js
index c725e4b..3b28d3f 100644
--- a/src/files.js
+++ b/src/files.js
@@ -2,7 +2,6 @@
2 2
3var fs = require('fs'), 3var fs = require('fs'),
4 path = require('path'), 4 path = require('path'),
5 ejs = require('ejs'),
6 rm = require('del'), 5 rm = require('del'),
7 debug = require('debug')('files'), 6 debug = require('debug')('files'),
8 mkdirp = require('mkdirp'), 7 mkdirp = require('mkdirp'),
@@ -54,10 +53,6 @@ function copyFile(source, target, cb) {
54 }); 53 });
55} 54}
56 55
57function render(view, options) {
58 return ejs.render(fs.readFileSync(view, 'utf8'), options);
59}
60
61function getAbsolutePath(filePath) { 56function getAbsolutePath(filePath) {
62 var absoluteFilePath = path.resolve(gBasePath, filePath); 57 var absoluteFilePath = path.resolve(gBasePath, filePath);
63 58