foundersandcoders / express-handlebars-workshop

7 stars 10 forks source link

Clarify that you don't have to manually register partials #20

Open jamiecoe opened 6 years ago

jamiecoe commented 6 years ago

Some of FAC 13 were confused by the Handlebars documentation on partials, regarding whether they needed to register the partials. I suggest that we update the instructions to make it clear that express-handlebars will do this for you. Eg:

Use the docs to find the syntax for inserting partials. (You don't need to register partials! The express-handlerbars module will handle this for you).

arrested-developer commented 6 years ago

FAC14 had the same confusion - we were all puzzled about where to register the partials, and had to have a mentor explain that this wasn't needed in Express. In fact the only relevant part of the docs was to find that the > symbol is used to insert a partial.

Please don't make students rely on the docs to work out how to use partials as they will be looking for a needle in a haystack before they can continue.