Intent
I need to render portion of hmtl into a page.
Problem
The page is being rendered without styling or layout.
I have a page that I need to be in plain html and not jade. But will still be using jade elsewhere.
I followed along to a similar question and that works to direct to an html page. BUT the styles and layout if not being passed in.
My previous page was cases.jade
and started like this
extends layout
block content
.row
.twelve.columns
h1 title
Now my new page is cases.html
and starts like this
<div class="row">
<div class="twelve columns">
<h1>Before & After Case Gallery</h1>
and is routed to like this
app.get('/cases', function (req, res)
{
res.render('cases.html');
});
and has this above it
app.set('views', __dirname + '/views');
app.engine('html', require('ejs').renderFile);