Sha256: eb7eba7628dc9b4ae792a2f192a3915c253047f5c9f05cb9e8f8b3546a5695dc

Contents?: true

Size: 1.14 KB

Versions: 9

Compression:

Stored size: 1.14 KB

Contents

<ul class="index">
  {%- for item in indexterms -%}
    <li>
      <p>
        {{ item.term }}
        {%- for target in item.targets -%}
          <a href="{{ target }}">[{{ forloop.index }}]</a>
        {%- endfor -%}
      </p>
      {%- if item.items[0] -%}
        <ul>
          {%- for item in item.items -%}
            <li>
              <p>
                {{ item.term }}
                {%- for target in item.targets -%}
                  <a href="{{ target }}">[{{ forloop.index }}]</a>
                {%- endfor -%}
              </p>
              {%- if item.items[0] -%}
                <ul>
                  {%- for item in item.items -%}
                    <li>
                      <p>
                        {{ item.term }}
                        {%- for target in item.targets -%}
                          <a href="{{ target }}">[{{ forloop.index }}]</a>
                        {%- endfor -%}
                      </p>
                    </li>
                  {%- endfor -%}
                </ul>
              {%- endif -%}
            </li>
          {%- endfor -%}
        </ul>
      {%- endif -%}
    </li>
  {%- endfor -%}
</ul>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
asciibook-0.1.0 templates/index.html
asciibook-0.1.0.pre.beta templates/index.html
asciibook-0.0.5 templates/index.html
asciibook-0.0.4 templates/index.html
asciibook-0.0.3 templates/index.html
asciibook-0.0.2 templates/index.html
asciibook-0.0.2.beta2 templates/index.html
asciibook-0.0.2.beta1 templates/index.html
asciibook-0.0.1 templates/index.html