/usr/lib/python2.7/dist-packages/compressor/tests/test_templates/test_complex/test_compressor_offline.html is in python-compressor 1.4-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | {% load compress static %}{% spaceless %}
{% if condition %}
{% compress js%}
<script type="text/javascript">alert("{{ condition|default:"yellow" }}");</script>
{% with names=my_names %}{% spaceless %}
{% for name in names %}
<script type="text/javascript" src="{% static name %}"></script>
{% endfor %}
{% endspaceless %}{% endwith %}
{% endcompress %}
{% endif %}{% if not condition %}
{% compress js %}
<script type="text/javascript">var not_ok;</script>
{% endcompress %}
{% else %}
{% compress js %}
<script type="text/javascript">var ok = "ok";</script>
{% endcompress %}
{% endif %}{% endspaceless %}
|