Error
{{ message }}
{# Default way of showing errors #} {% macro render_error(message) -%}
{%- endmacro %} {# Default macro for showing/wrapping the fetch results #} {% macro render_fetch_results(content, error) -%} {% if error %} {{ render_error(error) }} {% else %} {% if content is undefined %} {{ render_error("Some content expected but none was found.") }} {% else %} {{ caller() }} {% endif %} {% endif %} {%- endmacro %} {% macro pandas_table(df, caption, column_labels={}) -%} {% if (df is defined) and (df is not none) %} {#{{ column_labels[column] }} | {% else %}{{ column }} | {% endif %} {% endfor %} {% for idx, row in df.iterrows() %}
---|---|
{{ row[colname] | round(precision=2) }} | {% else %}{{ row[colname]|e }} | {% endif %} {% endfor %}