I have a layout.jade that looks like this:
html body block content block footer
My content.jade as follows:
extends layout block content
My footer.jade as follows:
extends layout block footer
Now when I launch my app as follows:
app.get('/', function(req, res) { res.render('layout'); });
I see neither the content nor the footer.
When I run:
app.get('/', function(req, res) { res.render('content'); });
Then I see the contents.
When I run:
app.get('/', function(req, res) { res.render('footer'); });
Then I see the footer.
How can I see both the content and the footer?
Amberlamps
source share