Skip to Content
Node.js 6.x Blueprints
book

Node.js 6.x Blueprints

by Fernando Monteiro
August 2016
Intermediate to advanced
376 pages
6h 33m
English
Packt Publishing
Content preview from Node.js 6.x Blueprints

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:

  1. Create a file called footer.ejs inside the views/partials folder and add the following code:
     <footer class="footer"> <div class="container"> <span>&copy 2016. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Node.js Development

Learning Node.js Development

Andrew Mead
VB.NET Core Classes in a Nutshell

VB.NET Core Classes in a Nutshell

Budi Kurniawan, Ted Neward
Your First Week With Node.js, 2nd Edition

Your First Week With Node.js, 2nd Edition

James Hibbard, Craig Buckler, Mark Brown, Nilson Jacques, James Kolce, Paul Orac, M. David Green, Florian Rappl

Publisher Resources

ISBN: 9781785888434Supplemental Content