{# Configuration variables needed by client-side code (Javascript). #}
{% autoescape 'js' %}
    var site = {
        "uri": {
            "public": "{{ site.uri.public | raw }}"
        },
        "debug": {
            "ajax": {{ site.debug.ajax ? 'true' : 'false' }}
        },
        "csrf": {{ site.csrf | json_encode(constant('JSON_PRETTY_PRINT')) | raw }},
        "uf_table": {{ site.uf_table | json_encode(constant('JSON_PRETTY_PRINT')) | raw }}
    };
{% endautoescape %}
