From 8a05d39ccd14162044f40a662dc80b88a7863669 Mon Sep 17 00:00:00 2001 From: Qkbrauyvi <2370186969@qq.com> Date: Fri, 21 May 2021 22:52:03 +0800 Subject: [PATCH] macro --- SpiderWebsite/demo/templates/macro | 195 +++++++++++++++++++++++++++++ 1 file changed, 195 insertions(+) create mode 100644 SpiderWebsite/demo/templates/macro 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) -%} +{{ chart.title_opts.title }}
+{{ chart.title_opts.subtitle }}
+ {{ chart.html_content }} +{{ chart.title_opts.title }}
+{{ chart.title_opts.subtitle }}
+ +