I tried this simple change from the seed and created the corresponding .html files (e.g. index.html).
//app.set('view engine', 'jade');
app.set('view engine', 'html');
and this file remained the same:
exports.index = function(req, res){
res.render('index');
};
but while running I get
500 Error: Cannot find module 'html'
Is my only option to use 'ejs'? My intent was to use plain HTML in conjuction with AngularJS.
The answers at the other link will work, but to serve out HTML, there is no need to use a view engine at all, unless you want to set up funky routing. Instead, just use the static middleware:
app.use(express.static(__dirname + '/public'));
try this for your server config
app.configure(function() {
app.use(express.static(__dirname + '/public')); // set the static files location
app.use(express.logger('dev')); // log every request to the console
app.use(express.bodyParser()); // pull information from html in POST
app.use(express.methodOverride()); // simulate DELETE and PUT
app.use(express.favicon(__dirname + '/public/img/favicon.ico'));
});
then your callback functions to routes will look like:
function(req, res) {
res.sendfile('./public/index.html');
};