39 lines
1.9 KiB
Django/Jinja
39 lines
1.9 KiB
Django/Jinja
{% if scriptorium_prompt_dir is none and scriptorium_profile_dir is none and scriptorium_schema_dir is none and scriptorium_server_addr is none and scriptorium_server_artifact_root is none and scriptorium_server_max_request_bytes is none and scriptorium_server_max_artifact_bytes is none and scriptorium_server_max_response_bytes is none and scriptorium_defaults_render_format is none and scriptorium_backends is none %}
|
|
{}
|
|
{% else %}
|
|
{% if scriptorium_prompt_dir is not none %}
|
|
prompt_dir: {{ scriptorium_prompt_dir | to_json }}
|
|
{% endif %}
|
|
{% if scriptorium_profile_dir is not none %}
|
|
profile_dir: {{ scriptorium_profile_dir | to_json }}
|
|
{% endif %}
|
|
{% if scriptorium_schema_dir is not none %}
|
|
schema_dir: {{ scriptorium_schema_dir | to_json }}
|
|
{% endif %}
|
|
{% if scriptorium_server_addr is not none or scriptorium_server_artifact_root is not none or scriptorium_server_max_request_bytes is not none or scriptorium_server_max_artifact_bytes is not none or scriptorium_server_max_response_bytes is not none %}
|
|
server:
|
|
{% if scriptorium_server_addr is not none %}
|
|
addr: {{ scriptorium_server_addr | to_json }}
|
|
{% endif %}
|
|
{% if scriptorium_server_artifact_root is not none %}
|
|
artifact_root: {{ scriptorium_server_artifact_root | to_json }}
|
|
{% endif %}
|
|
{% if scriptorium_server_max_request_bytes is not none %}
|
|
max_request_bytes: {{ scriptorium_server_max_request_bytes | to_json }}
|
|
{% endif %}
|
|
{% if scriptorium_server_max_artifact_bytes is not none %}
|
|
max_artifact_bytes: {{ scriptorium_server_max_artifact_bytes | to_json }}
|
|
{% endif %}
|
|
{% if scriptorium_server_max_response_bytes is not none %}
|
|
max_response_bytes: {{ scriptorium_server_max_response_bytes | to_json }}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if scriptorium_defaults_render_format is not none %}
|
|
defaults:
|
|
render_format: {{ scriptorium_defaults_render_format | to_json }}
|
|
{% endif %}
|
|
{% if scriptorium_backends is not none %}
|
|
backends: {{ scriptorium_backends | to_json }}
|
|
{% endif %}
|
|
{% endif %}
|