/*
 * GET home page.
 */

exports.index = function(req, res) {
	res.render('index', {
		title : 'Express'
	});
	/*
	var mongoose = require('mongoose');
	var Kitten = mongoose.model('Kitten');
	var db = mongoose.connection;
	db.on('error', console.error.bind(console, 'connection error:'));
	var silence = new Kitten({
		name : 'Silence'
	});
	silence.save();
	Kitten.find(function(err, kittens) {
		console.log(kittens);
	});*/
	
	/*
	var taglib = require('taglib');
	taglib.read('/home/magne/music/01 The Business Of Living.mp3', function(err, tag, audioProperties){
		console.log(tag);
		console.log(audioProperties);
	});*/
};
@@ -22,99 +22,8 @@
  */%0A
-%0Aexports.index = function(req, res) %7B%0A%09res.render('index', %7B%0A%09%09title : 'Express'%0A%09%7D);%0A%09/*%0A%09
 var 
@@ -56,55 +56,11 @@
 se')
-;
+,
 %0A%09
-var Kitten = mongoose.model('Kitten');%0A%09var 
 db =
@@ -83,412 +83,200 @@
 tion
-;%0A%09db.on('error', console.error.bind(console, 'connection error:'));%0A%09var silence = new Kitten(%7B%0A%09%09name : 'Silence'%0A%09%7D);%0A%09silence.save();%0A%09Kitten.find(function(err, kittens) %7B%0A%09%09console.log(kittens);%0A%09%7D);*/%0A%09%0A%09/*%0A%09var taglib = require('taglib');%0A%09taglib.read('/home/magne/music/01 The Business Of Living.mp3', function(err, tag, audioProperties)%7B%0A%09%09console.log(tag);%0A%09%09console.log(audioProperties);
+,%0A%09settings = require('../settings.json');%0A%0Aexports.index = function(req, res) %7B%0A%09res.render('index', %7B%0A%09%09title : 'Webmusic',%0A%09%09soundmanager: settings.soundmanager,%0A%09%09debug: settings.debug
 %0A%09%7D);
-*/
 %0A%7D;

Index route