{{- define "singlebody" -}} {{ $s := partialCached "scratch.html" . }} {{ $p := $.GetPage .Params.print }} {{ $scratch := $s.Get (printf "/%s" $p.File) }} {{ $currentDir := "" }} {{ with .File }} {{ $currentDir = .Dir }} {{ end }}
{{ partial "singlebody.html" $p }}
{{ $p.Content }} {{ range $printPage := $scratch.has_cildren }}
{{ partial "singlebody.html" $printPage }}
{{ $printPage.Content }} {{ $printPageScratch := $s.Get (printf "/%s" $printPage.File) }} {{ range $printPageKid := $printPageScratch.has_children }}
{{ partial "singlebody.html" $printPageKid }}
{{ $printPageKid.Content }} {{ . }} {{ end }}
{{ end }} {{- end -}}