2024-06-09 18:14:53 -07:00
|
|
|
{{ partial "geturl.html" (dict "scratch" .Scratch "path" (.Get 1)) }}
|
2024-05-21 21:31:37 -07:00
|
|
|
{{- $groupconfig := dict
|
2024-05-21 20:39:21 -07:00
|
|
|
"url" (.Scratch.Get "bestUrl")
|
2024-05-21 20:59:08 -07:00
|
|
|
"basePath" (.Scratch.Get "bestPath")
|
2024-05-21 20:39:21 -07:00
|
|
|
"path" (.Get 1)
|
|
|
|
"comment" ", entire file"
|
|
|
|
"code" (readFile (printf "code/%s" (.Get 1)))
|
|
|
|
"language" (.Get 0)
|
|
|
|
"opts" "linenos=table"
|
2024-05-21 21:31:37 -07:00
|
|
|
-}}
|
2024-05-21 20:39:21 -07:00
|
|
|
{{ partial "highlightgroup.html" $groupconfig }}
|