O'Reilly logo

Node.js 6.x Blueprints by Fernando Monteiro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Refactoring the views folder

Now we will make a small change to the app/views folder and add some more files:

  1. First off, let's edit app/views/index.js. Replace the original code with the following code:
     {% extends 'layout.swig' %} {% block content %} <div class="section no-pad-bot" id="index-banner"> <div class="container"> <br><br> <h1 class="header center orange-text">{{ title }}</h1> <div class="row center"> <h5 class="header col s12 light">Welcome to {{ title }} </h5> </div> <div class="row center"> <a href="books/add" id="download-button" class="btn-large waves-effect waves-light orange">Create Your Photo Book </a> </div> <br><br> </div> </div> <div class="container"> <div class="section"> <!-- Icon Section --> <div class="row"> <div class="col ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required