function getView(name, params){
var filepath = path.normalize(__dirname+'\\..\\views\\'+name.replace(/\//g,'\\')+'.js');
var output = '';
path.exists(filepath, function(exists){
var view = require('../views/'+name);
if(exists){
output = view.template(params);
}else{
console.log('VIEWS: | Requested view '+filepath +' not found');
output = 'not exists';
}
});
return output;
}