elcharitas/waxe

View on GitHub
docs/theme/partials/navigation.hbs

Summary

Maintainability
Test Coverage
{{#if isVisible}}
    {{#if isLabel}}
        <li class="label {{cssClasses}}">
            <span>{{{wbr title}}}</span>
        </li>
    {{else}}
        {{#if isGlobals}}
            <li class="globals {{#if isInPath}}current{{/if}} {{cssClasses}}">
                <a href="{{buildURL url}}"><em>{{{wbr title}}}</em></a>
            </li>
        {{else}}
            <li class="{{#if isInPath}}current{{/if}} {{cssClasses}}">
                <a href="{{buildURL url}}">{{{wbr title}}}</a>
                {{#if isInPath}}
                    {{#if children}}
                        <ul>
                            {{#each children}}
                                {{> navigation}}
                            {{/each}}
                        </ul>
                    {{/if}}
                {{/if}}
            </li>
        {{/if}}
    {{/if}}
{{/if}}