EthanRBrown / web-development-with-node-and-express

Companion repository to Web Development With Node and Express, first edition.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggestion for ch 7 "Sections" topic

reybango opened this issue · 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.

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.