getActiveAndParents

  • function
 

Renders its sub-section with a parents array of docObjects and the last parent menu as the "active" item.

defaultHelpers.getActiveAndParents(options)

Renders its sub-section with a parents array of docObjects and the last parent menu as the "active" item.

Parameters

  1. options {*}

Use

Call it in your template like:

{{#getActiveAndParents}}
  {{#each parents}}
  {{/each}}
  {{#active}}
  {{/active}}
{{/getActiveAndParents}}

where parents is each parent docObject of the current docObject and active is the first docObject of current that has children.