{% if debug %} <script type="text/javascript"> {% for q in sql_queries %} console.debug("({{ q.time }}s)", "{{ q.sql|escapejs }}"); {% endfor %} </script> {% endif %}