From EJS to Jade

This commit is contained in:
Thomas FORGIONE
2015-05-05 16:30:51 +02:00
parent e05add5ee5
commit 7363f0aeed
26 changed files with 246 additions and 269 deletions

View File

@@ -1,10 +1,7 @@
var pejs = require('pejs');
views = pejs();
module.exports.index = function(req, res) {
res.setHeader('Content-Type', 'text/html');
views.render('bouncing', res.locals, function(err, result) {
res.render('index.jade', res.locals, function(err, result) {
console.log(err);
res.send(result);
});

View File

@@ -0,0 +1,13 @@
extends ../../../views/withjs
block title
title #{title} - Bouncing cube
block extrajs
script(src="/static/js/bouncing/BouncingMain.js")
block content
h2 Bouncing cube
p Click on the cube to make it jump !
#container