{% macro render_status(status) -%} {% if status == 'success' -%} {% elif status == 'failed' -%} {% elif status == 'incomplete' -%} {% else -%} {% endif -%} {% endmacro -%} {% macro result_page_length(length) -%} {% if length == 0 -%} "paging": false, {% else -%} "pageLength": {{ length }} {% endif -%} {% endmacro -%}