Added begining of tutorial

This commit is contained in:
Thomas FORGIONE
2015-05-26 11:49:24 +02:00
parent b05ed54738
commit b4241d4546
11 changed files with 389 additions and 20 deletions

View File

@@ -68,3 +68,12 @@ module.exports.replay_index = function(req, res, next) {
});
});
}
module.exports.tutorial = function(req, res) {
res.setHeader('Content-Type', 'text/html');
res.render('tutorial.jade', res.lcals, function(err, result) {
res.send(result);
});
}

View File

@@ -5,5 +5,6 @@ module.exports = {
'/prototype/reverse': 'reverse',
'/prototype/replay': 'replay_index',
'/prototype/replay/:id': 'replay',
'/prototype/replay_info/:id': 'replay_info'
'/prototype/replay_info/:id': 'replay_info',
'/prototype/tutorial': 'tutorial'
}

View File

@@ -0,0 +1,8 @@
extends ./prototype
block title
title #{title} - Prototype - Tutorial
block configjs
script RecommendedCamera = FixedCamera;
script(src="/static/js/tutorial.min.js")