This is what I did, and it worked for me. The example uses a hypothetical representation of βvideo,β which requires a title that should be a βvideo gallery,β adjust accordingly.
layout.jade // This is added by default in express applications
doctype html html head title= title link(rel='stylesheet', href='/stylesheets/style.css') body block content
video.jade // You can create a view like this
extends layout block content h1= title
app.js // The default file, but you must add such a route. And set the title
app.get('/videos/', function(req, res){ res.render('videos', { title: 'Video Gallery' }); });
Jallardo
source share