3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 03:33:07 +01:00

remake the app inside the module

This commit is contained in:
Luke Slater 2011-09-13 21:55:20 +01:00
parent fdf576ae65
commit 75899123c9
3 changed files with 7 additions and 17 deletions

View File

@ -1,4 +0,0 @@
div#main
div#title depressionbot web interface
p
| Bitch please

View File

@ -1,6 +0,0 @@
!!! 5
html(lang: 'en')
head
meta(charset: 'utf-8')
title depressionbot web interface
body!= body

View File

@ -1,20 +1,20 @@
var express = require('express');
var app = express.createServer();
var pub = '../public';
app.use(express.compiler({ src: pub, enable: ['sass'] }));
app.use(express.static(pub));
app.set('view engine', 'jade');
var webInterface = function(dbot) {
var dbot = dbot;
var pub = '../public';
var app = express.createServer();
app.use(express.compiler({ src: pub, enable: ['sass'] }));
app.use(express.static(pub));
app.set('view engine', 'jade');
app.get('/', function(req, res) {
res.render('index', { });
});
app.listen(1337);
return { };
};