web-development-with-node-and-express icon indicating copy to clipboard operation
web-development-with-node-and-express copied to clipboard

Suggestion for ch 7 "Sections" topic

Open reybango opened this issue 9 years ago • 1 comments

In ch7, there's a section that dives into the concept of "Sections" within your view. Cool way to use Handlebars helpers but I wanted to offer some feedback to make it a little clearer:

  1. You should explain what options.fn() does. I had to go to the Handlebars site to find a reference to it and even then it wasn't very clear on what it actually does.
  2. The section in the book ends without explaining where to add the _section.head & _section.jquery code. I assumed it was main.handlebars so I added it there.
  3. There were no instructions on how to reference the new 'jquery-test.handlebars' template so I just created a simple route to call it. The book should mention something about that.

reybango avatar Feb 16 '16 23:02 reybango

Thanks for the feedback, Ray, those are all good points. I know you've got some additional PRs, which I will get to soon! I am going to leave this open because I'll use it as a reminder to make changes to the copy in the book.

EthanRBrown avatar Feb 17 '16 00:02 EthanRBrown