From 009d3f90b1881530bd28003abe83cfc3735882be Mon Sep 17 00:00:00 2001 From: Jieiku Date: Fri, 25 Aug 2023 01:44:50 -0700 Subject: Refactor Documentation, PWA Fix, image shortcodes fix, simplify js script loading --- templates/shortcodes/showdata.html | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 templates/shortcodes/showdata.html (limited to 'templates/shortcodes/showdata.html') diff --git a/templates/shortcodes/showdata.html b/templates/shortcodes/showdata.html new file mode 100644 index 0000000..9c14444 --- /dev/null +++ b/templates/shortcodes/showdata.html @@ -0,0 +1,8 @@ +{%- if src and key and type %} + {%- if src is matching("^http[s]?://") %} + {% set data = load_data(url=src, format=type) %} + {%- else %} + {% set data = load_data(path=src, format=type) %} + {%- endif %} + {{ data[key] }} +{%- endif %} -- cgit v1.3.1