I have been using sendFile method to render Html in Express project. I would like to use partials with my project. And, not switch to jade.
Is there a way to use traditional HTML with partials in Express 3.x. I have tried ejs, but dont understand it completely.
A more 'HTML-like' templating engine would be nunjucks (whose syntax is similar to Jinja2, which you have experience with).
Here's a simple setup. This assumes both Express and Nunjucks are installed, if not:
– app.js
– views/index.html
– views/item.html