aboutsummaryrefslogtreecommitdiff
path: root/templates/shortcodes/showdata.html
blob: 9c14444e4c8e9da447fef517d141c91981c9c6d0 (plain)
1
2
3
4
5
6
7
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 %}