mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 15:56:15 +02:00
7 lines
315 B
HTML
7 lines
315 B
HTML
{#- load_data uses different arguments based on whether it's a remote or local file -#}
|
|
{%- if src is starting_with("http") -%}
|
|
{%- set response = load_data(url=src, format="plain") -%}
|
|
{%- else -%}
|
|
{%- set response = load_data(path=src, format="plain") -%}
|
|
{%- endif -%}
|
|
{{- response | trim_end | safe -}}
|