refactoring installation scripts to use node prompt module, lots of other fixes

fixed #263, fixed #264, fixed #265
This commit is contained in:
Julian Lam
2013-09-06 22:22:42 -04:00
parent a88ddc2a4d
commit bec0b46a2c
11 changed files with 216 additions and 173 deletions

View File

@@ -65,7 +65,7 @@
for (var t in templatesToLoad) {
(function(file) {
fs.readFile(global.configuration.ROOT_DIRECTORY + '/public/templates/' + file + '.tpl', function(err, html) {
fs.readFile(__dirname + '/../templates/' + file + '.tpl', function(err, html) {
var template = function() {
this.toString = function() {
return this.html;
@@ -90,8 +90,6 @@
config = config_data[0];
available_templates = templates_data[0];
templates.ready();
});
}