diff options
| author | Jieiku | 2023-08-25 01:44:50 -0700 |
|---|---|---|
| committer | Jieiku | 2023-08-25 01:44:50 -0700 |
| commit | 009d3f90b1881530bd28003abe83cfc3735882be (patch) | |
| tree | 5112554449edf2aaff956b9c364133ec41ff39c5 /templates/shortcodes/showdata.html | |
| parent | c04ff0a3ac2aff149c3454f7563de3f7941e373d (diff) | |
| download | abridge-009d3f90b1881530bd28003abe83cfc3735882be.tar.gz abridge-009d3f90b1881530bd28003abe83cfc3735882be.tar.bz2 abridge-009d3f90b1881530bd28003abe83cfc3735882be.zip | |
Refactor Documentation, PWA Fix, image shortcodes fix, simplify js script loading
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 %} |
