6 lines
207 B
Django/Jinja
6 lines
207 B
Django/Jinja
## add response headers
|
|
{%- set resp_hdr_dict = j2cfg.response_headers or {} -%}
|
|
{%- for h, v in resp_hdr_dict.items() %}
|
|
{#- TODO: precise quotation #}
|
|
add_header {{ h }} {{ v.__repr__() }};
|
|
{%- endfor %} |