Adding partials files for head and footer

Now lets add files for head and footer:

  1. Inside the views/partials folder create a new file called head.html and place the following code:
          <meta charset="utf-8"> 
          <title>{{ title }}</title> 
          <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs
           /twitter-bootstrap/4.0.0-alpha.2/css/bootstrap.min.css'> 
          <link rel="stylesheet" href="/stylesheets/style.css"> 
    
  2. Inside the views/partials folder create a file called footer.html and place the following code:
          <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.1
           /jquery.min.js'></script> 
          <script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap
           /4.0.0-alpha.2/js/bootstrap.min.js'></script> 
    
  3. Now, its time to add the partials file to ...

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.