dimanche 1 mars 2015

Issues With Jade Extends

Using Jade for the first time in a project. Pretty great so far. It seems that I am having some issues with the Extends functionality. My block is not showing up when layout.jade renders.


layout.jade:



div.ui.tab.contact(data-tab="contact")
div.tab-con
block form


index.jade



extends layout

block form
h1 Get in touch...


App Configurations:



app.set('views', './views');
app.set('view engine', 'jade');


The route:



app.get('/', index.index);


And index.js with the route export:



exports.index = function(req, res) {
res.render('layout', {});
}


I would be more than happy to post any other code. Any suggestions would be appreciated.


Aucun commentaire:

Enregistrer un commentaire