Added begining of tutorial
This commit is contained in:
9
controllers/prototype/index.js
vendored
9
controllers/prototype/index.js
vendored
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
3
controllers/prototype/urls.js
vendored
3
controllers/prototype/urls.js
vendored
@@ -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'
|
||||
}
|
||||
|
||||
8
controllers/prototype/views/tutorial.jade
Normal file
8
controllers/prototype/views/tutorial.jade
Normal 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")
|
||||
Reference in New Issue
Block a user