{% macro modal_btn_group() -%}
{%- endmacro %} {% macro code_table(headings, rows, title=None) -%} {% if title %}

{{ title }}

{% endif %} {% for heading in headings %} {% endfor %} {% for row in rows %} {% for col in row %} {% endfor %} {% endfor %}
{{ heading|markdown|safe }}
{{ col|markdown|safe }}
{%- endmacro %} {% macro options_table(rows, title=None) -%} {{ code_table(("Option Name", "Type", "Default", "Description"), rows, title) }} {%- endmacro %} {% macro events_table(rows, title=None) -%} {{ code_table(("Event", "Parameters", "Description"), rows, title) }} {%- endmacro %} {% macro methods_table(rows, title=None) -%} {{ code_table(("Name", "Parameters", "Return", "Description"), rows, title) }} {%- endmacro %} {% macro snippet(options, element="#fine-uploader", endpoint="/server/upload", callbacks={}, modes=['Core', 'UI', 'jQuery Core', 'jQuery UI', 'S3']) -%} {# This macro will take the same parameters as Fine Uploader, but it will generate an example code snippet for each sort of FineUploader type (core, UI, jquery, etc.) #} {# {% for mode in modes %} {% if mode == 'Core' %} {% endif %} {% endfor %} #} {%- endmacro %}