{{ $url := .Get "url" }} {{ $type := .Get "type" }} {{ with resources.GetRemote (urls.Parse $url) }} {{ $codeBlock := printf "```%s\n%s\n```" $type .Content }} {{ $codeBlock | markdownify }} {{ else }} {{ errorf "Code Importer Shortcode - Unable to get remote resource" . }} {{ end }}