The answers at the other link will work, but to serve out HTML, there is no need to use a view engine at all, unless you want to set up funky routing. Instead, just use the static middleware:
app.use(express.static(__dirname + '/public'));
More Related Contents:
- Render basic HTML view?
- HTML-parser on Node.js [closed]
- Best approach to real time http streaming to HTML5 video client [closed]
- Browserify with require(‘fs’)
- How to escape HTML in node.js EJS view?
- Loading basic HTML in Node.js
- Node.js – How to send data from html to express
- Browser is not displaying images
- How can I select an element with multiple classes in jQuery?
- Why is there an unexplainable gap between these inline-block div elements? [duplicate]
- Why doesn’t percentage padding / margin work on flex items in Firefox and Edge?
- How to remove .html from URL?
- Grid properties not working on elements inside grid container
- Is element block level or inline level?
- Adding a favicon to a static HTML page
- Maintain the aspect ratio of a div with CSS
- How do I give text or an image a transparent background using CSS?
- How to include an HTML page into another HTML page without frame/iframe?
- Why does firebug add to ?
- Why is HTML5 input type datetime removed from browsers already supporting it?
- What characters are allowed in an HTML attribute name?
- How to avoid sending input fields which are hidden by display:none to a server?
- Hide html horizontal but not vertical scrollbar
- Change background image opacity
- Why is there vertical scroll on the main container?
- Multiple distinct pages in one HTML file
- Make index.html default, but allow index.php to be visited if typed in
- HTML input time in 24 format
- Stripping out HTML tags from a string
- HTML5 Canvas – Fill circle with image