File: default.liquid

package info (click to toggle)
jq 1.6-2.1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 2,236 kB
  • sloc: ansic: 13,418; yacc: 872; sh: 403; lex: 185; makefile: 158; javascript: 50; python: 20
file content (34 lines) | stat: -rw-r--r-- 967 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html lang="en">
{% include "shared/head" %}

  <body id="{{slug}}">
{% include "shared/navbar" %}

    <div class="container">
      <div class="row">
        <h1>{{headline}}</h1>
        {% for item in body %}
          {% if item.text %}
            {{ item.text | replace: '$JQ_VERSION', jq_version | markdownify }}
          {% endif %}

          {% if item.command %}
            {% capture resultID %}{{ "result" | unique}}{% endcapture %}
            <div class="tutorial-example">
              <div class="accordion-heading">
                <pre>{{item.command}}</pre>
                <a data-toggle="collapse" href="#{{resultID}}">Show result</a>
              </div>
              <div id="{{resultID}}" class="accordion-body collapse">
                <pre>{{item.result}}</pre>
              </div>
            </div>
          {% endif %}
        {% endfor %}
      </div>
    </div>

{% include "shared/footer" %}
  </body>
</html>