diff options
Diffstat (limited to 'templates/shortcodes/showdata.html')
| -rw-r--r-- | templates/shortcodes/showdata.html | 8 |
1 files changed, 8 insertions, 0 deletions
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 %} |
