Creating view files
In this section, we will use the same view
files used in Chapter 01
for the following files:
views / partials / javascripts.ejs
views / partials / stylesheets.ejs
views / pages / login.ejs
views / pages / signup.ejs
views / pages / profile.ejs
views / pages / index.ejs
views / pages / comments.js
views / pages / error.ejs
As previously commented, you can download these files from the Packt website or the official GitHub repository of the book.
In addition to these files, we will create the views
files for the photos and videos page, and add these routes to the application menu:
- Create a file called
footer.ejs
inside theviews/partials
folder and add the following code:<footer class="footer"> <div class="container"> <span>© 2016. ...
Get Node.js 6.x Blueprints now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.