August 2016
Intermediate to advanced
376 pages
6h 33m
English
Our next step is to build the application views files, so we will create new files within the views directory using the .ejs extension.
<% include header %>
<div class="container">
<h1><%- error.status %></h1>
<h4><%- message %></h4>
<p><%- error.stack %></p>
</div>
<% include footer %>
<script src="https://cdn.socket.io/socket.io-1.4.5.js"></script>
<script src="js/main.js"></script>
</body>
</html>
Note that we already included the Socket.io client file from a Content Delivery Network (CDN). Don't worry about the main.js file at the end of footer.ejs; we will create this file in the ...