Preparing for this chapter
This chapter uses the part2app
project from Chapter 14. The first set of examples in this chapter is for a round-trip application. To prepare, add a file named data.handlebars
to the templates/server
folder with the content shown in Listing 15.1:
Tip
You can download the example project for this chapter – and for all the other chapters in this book – from https://github.com/PacktPublishing/Mastering-Node.js-Web-Development. See Chapter 1 for how to get help if you have problems running the examples.
Listing 15.1: The contents of the data.handlebars file in the templates/server folder
<form class="m-2">
<table class="table table-sm table-striped">
<thead>
<tr>
<th>ID</th><th>Name</th><th>Age</th><th>Years</th>
<th>Next Age</th><th></th>
...