How to do it…

  1. Open the currently empty file located at chapter4/start/app/recipe04-01.ejs, and add the following code:
      <div class="container">       <div class="mt-5">       <h1><%- title %></h1>       <p><a href="https://v4-        alpha.getbootstrap.com/components/alerts/" target="_blank">Link         to bootstrap alerts docs</a></p>       </div>      </div><!-- /.container -->
  1. Still in the same file, add any additional content. If you choose to do so, you can add the content from the chapter4/complete/app/recipe04-01.ejs folder.
  2. Open the chapter4/start folder and navigate to app/partial/_js.ejs. Add the following code to the bottom of the file:
      <%- partial("_recipe-04-01-js") %>
  1. Open the empty _recipe-04-01-js.ejs file, located in the app/partial folder.

 

  1. Add the following ...

Get Bootstrap 4 Cookbook 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.