O'Reilly logo

Bootstrap 4 Cookbook by Ajdin Imsirovic

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

How to do it...

  1. In workspace/app/index.ejs, change the code to look like this:
      <!--       <div class="container">       <div class="starter-template">       <h1>Bootstrap 4 Grid Recipe</h1>       <p class="lead">Use this document as a way to quickly start any         new project.<br> All you get is this text and a mostly barebones         HTML document.</p>       </div>       </div>      -->      <%# partial("partial/_defaultGrid") %>      <%# partial("partial/_chapter02-05-html") %>      <%# partial("partial/_chapter02-06-html") %>      <%# partial("partial/_chapter02-06-html") %>      <%- partial("partial/_chapter02-07-html") %>
  1. In app/_layout.ejs, the updated code from the opening !DOCTYPE to the <%- yield %> should look like this:
      <!DOCTYPE html>      <html lang="en">       <head>       <meta charset="utf-8"> <meta name="viewport" ...

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