foundersandcoders / express-handlebars-workshop

7 stars 10 forks source link

Errors in instructions #13

Closed BartBucknill closed 6 years ago

BartBucknill commented 6 years ago

Working through the workshop again from the new instructions, I came across a couple of errors:

Replace everything in fruits.hbs that you have created partials for, and replace with the appropriate partials.

should be: "Remove everything in fruits.hbs that you have created partials for and inserted in the main layout. The content remaining in fruit.hbs is what will be rendered as {{{ body }}} in the main.hbs layout."

The snippet below from the using helpers section should not include capitalize, as this has not yet been defined.

{{#each fruits}}

    <li class="fruit__item">
      <a class="fruit__link" href="/fruits/{{this}}"><div class="fruit__image" style="background-image: url(/images/fruits/{{this}}.jpg)"></div></a>
      <div class="fruit__info">
        <h2 class="fruit__name">{{capitalize this}}</h2>
        <svg class="fruit__fav-btn"><use id="js-fav-btn" xlink:href="#icon-heart"></use></svg>
      </div>
    </li>

    {{/each}}