How to do it…

  1. Open the currently empty file located at chapter4/start/app/recipe04-05.ejs, and add the following code:
<div class="container"> <div class="mt-5"> <h1 class="mb-2"><%- title %></h1> <h3 class="text-info mb-3">List of recipe-related official Bootstrap documentation</h3> <p><a href="https://v4-alpha.getbootstrap.com/components/buttons/" target="_blank">Link to bootstrap buttons docs</a></p> </div><!-- /.container --> <h3 class="mt-5 mb-3">Here is an example of using the Bootstrap sass mixin to create a custom button</h3><p>First, we will import the mixins into our <code>main.scss</code> file, using the following <code>@import</code> statement:<code>@import "./bower_components/bootstrap/scss/_mixins.scss";</code></p><p>Next, ...

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.