web-development-with-node-and-express
web-development-with-node-and-express copied to clipboard
Suggestion for ch 7 "Sections" topic
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:
- 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. - 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. - 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.