diff --git a/SpiderWebsite/demo/templates/macro b/SpiderWebsite/demo/templates/macro new file mode 100644 index 0000000..691d1ed --- /dev/null +++ b/SpiderWebsite/demo/templates/macro @@ -0,0 +1,195 @@ +{%- macro render_chart_content(c) -%} +
+ +{%- endmacro %} + +{%- macro render_notebook_charts(charts, libraries) -%} + +{%- endmacro %} + +{%- macro render_chart_dependencies(c) -%} + {% for dep in c.dependencies %} + + {% endfor %} +{%- endmacro %} + +{%- macro render_chart_css(c) -%} + {% for dep in c.css_libs %} + + {% endfor %} +{%- endmacro %} + +{%- macro display_tablinks(chart) -%} +
+ {% for c in chart %} + + {% endfor %} +
+{%- endmacro %} + +{%- macro switch_tabs() -%} + +{%- endmacro %} + +{%- macro generate_tab_css() %} + +{%- endmacro %} + +{%- macro gen_components_content(chart) %} + {% if chart._component_type == "table" %} + +
+

{{ chart.title_opts.title }}

+

{{ chart.title_opts.subtitle }}

+ {{ chart.html_content }} +
+ {% elif chart._component_type == "image" %} +
+

{{ chart.title_opts.title }}

+

{{ chart.title_opts.subtitle }}

+ +
+ {% endif %} +{%- endmacro %}