{{ $id := string (.Get 0) }} {{ $url := printf "https://xkcd.com/%s/info.0.json" $id }} {{ with resources.GetRemote $url }} {{ $data := . | transform.Unmarshal }}

Xkcd - {{ $data.title }}

{{ $data.alt }}

{{ $data.alt }}

{{ else }}

Impossibile recuperare il fumetto xkcd #{{ $id }}.

{{ end }}