I have the following layout.jade:
!!!
html
head
title= title
link(rel='stylesheet', href='/stylesheets/style.css')
body!= body
In the body, I'd like to include the contents of another file, content.jade.
I'm trying something like this in app.js:
app.get('/test', function(req, res){
res.render('layout', {
layout: false,
body: include content.jade
});
});
but it gives SyntaxError: Unexpected identifier at 'content'. Is there a way to do this?