From EJS to Jade
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
var pejs = require('pejs');
|
||||
views = pejs();
|
||||
|
||||
module.exports.index = function(req, res) {
|
||||
res.setHeader('Content-Type', 'text/html');
|
||||
|
||||
views.render('multisphere', res.locals, function(err, result) {
|
||||
res.render('index.jade', res.locals, function(err, result) {
|
||||
console.log(err);
|
||||
res.send(result);
|
||||
});
|
||||
}
|
||||
|
||||
17
controllers/multisphere/views/index.jade
Normal file
17
controllers/multisphere/views/index.jade
Normal file
@@ -0,0 +1,17 @@
|
||||
extends ../../../views/withjs
|
||||
|
||||
block title
|
||||
title #{title} - Multi-sphere
|
||||
|
||||
block extrajs
|
||||
script(src="/static/js/multisphere/MultiSphere.js")
|
||||
|
||||
block content
|
||||
h2 Multiresolution sphere
|
||||
|
||||
p.
|
||||
This is the first test of multi-resolution. In fact, it's not really one
|
||||
multi-resolution sphere but many spheres with different resolutions. You
|
||||
can change resolution by clicking on the canvas.
|
||||
|
||||
#container
|
||||
Reference in New Issue
Block a user