Files
stedolan-jq/docs/templates/default.html.j2
T

35 lines
978 B
Django/Jinja
Raw Normal View History

2012-09-18 17:51:53 +01:00
<!DOCTYPE html>
<html lang="en">
2019-02-20 20:50:08 -05:00
{% include "shared/_head.html.j2" %}
2015-08-12 20:28:17 -07:00
2012-09-18 17:51:53 +01:00
<body id="{{slug}}">
2019-02-20 20:50:08 -05:00
{% include "shared/_navbar.html.j2" %}
2015-08-12 20:28:17 -07:00
2012-09-18 17:51:53 +01:00
<div class="container">
<div class="row">
<h1>{{headline}}</h1>
{% for item in body %}
{% if item.text %}
2019-02-20 20:50:08 -05:00
{{ item.text | replace('$JQ_VERSION', jq_version) | markdownify }}
2012-09-18 17:51:53 +01:00
{% endif %}
2015-08-12 20:28:17 -07:00
{% if item.command %}
2019-02-20 20:50:08 -05:00
{% set resultID = unique_id() %}
2012-09-18 17:51:53 +01:00
<div class="tutorial-example">
<div class="accordion-heading">
<pre>{{item.command}}</pre>
2019-02-20 20:50:08 -05:00
<a data-toggle="collapse" href="#result{{resultID}}">Show result</a>
2012-09-18 17:51:53 +01:00
</div>
2019-02-20 20:50:08 -05:00
<div id="result{{resultID}}" class="accordion-body collapse">
2015-08-12 20:28:17 -07:00
<pre>{{item.result}}</pre>
</div>
2012-09-18 17:51:53 +01:00
</div>
{% endif %}
{% endfor %}
</div>
</div>
2015-08-12 20:28:17 -07:00
2019-02-20 20:50:08 -05:00
{% include "shared/_footer.html.j2" %}
2012-09-18 17:51:53 +01:00
</body>
</html>