pupate

No description provided
git clone https://git.woozle.org/neale/pupate.git

pupate / variants / sctr / puzzle
Neale Pickett  ·  2025-01-31

puzzle.md

 1---
 2#
 3# If you change this file without changing the source, your changes may get overwritten.
 4#
 5{{- $urlpfx := .RelPath "" | urlquery | printf "{API_URL}%s"}}
 6pupate:
 7    version: {{.PupateVersion}}
 8    generated-by: {{currentuser.Username | json}}
 9    source: {{.SrcPath .SrcName | json}}
10    urlpfx: {{$urlpfx | json}}
11    puzzle:
12        title: {{.Title | json}}
13        authors: {{- range .Authors}}
14            - {{. | json}}
15        {{- end}}
16        question: {{.Question | TrimSpace | json}}
17        objectives: {{- range .Objectives}}
18            - {{. | json}}
19        {{- end}}
20        ksas: {{- range .KSAs}}
21            - {{. | json}}
22        {{- end}}
23        success: {{- with .Success}}
24            acceptable: {{.Acceptable | TrimSpace | json}}
25            mastery: {{.Mastery | TrimSpace | json}}
26        {{- end}}
27---
28{{(eval "content" .) | .PrefixAttachments $urlpfx | TrimSpace}}