<template name="courseSidebarSection">
  <div class="panel panel-default">
    {{#if Template.subscriptionsReady }}
    <div class="panel-heading">
      <!-- TODO: see if this can be re-written using #with instead of #each -->
      {{#each section }}
      {{ title }}
      {{/each }}
    </div>
    {{/ if }}

    {{# if lessons }}
    <div class="panel-body">

        <ul class="nav nav-pills nav-stacked">
          {{# each lessons }}
            {{> sectionLesson}}
          {{/ each }}
        </ul>

    </div>
    {{/ if }}

    {{# if editingThisCourse }}
    <div class="panel-footer">
      {{> addLesson }}
    </div>
    {{/ if }}
  </div>
</template>

<template name="courseSidebarSection">
  <div class="panel panel-default">
    {{#if Template.subscriptionsReady }}
    <div class="panel-heading">
      {{#with section }}
      {{ title }}
      {{/with }}
    </div>
    {{/ if }}

    {{# if lessons }}
    <div class="panel-body">

        <ul class="nav nav-pills nav-stacked">
          {{# each lessons }}
            {{> sectionLesson}}
          {{/ each }}
        </ul>

    </div>
    {{/ if }}

    {{# if editingThisCourse }}
    <div class="panel-footer">
      {{> addLesson }}
    </div>
    {{/ if }}
  </div>
</template>

Use with instead of each.
Use with instead of each.
