{{ define "before" }}
{{ end }} {{ define "main" }} {{ partial "single_main.html" . }} {{ end }} {{ define "styles" }} {{- with partial "secure_asset.html" "styles/nethack.css" -}} {{ with .Secure }} {{ else }} {{- errorf "Unable to find nethack.css" -}} {{ end }} {{- end -}} {{- range .Resources.Match "*.css" -}} {{- $stylesheet := . | fingerprint "md5" }} {{- end -}} {{ end }} {{ define "scripts" }} {{- with partial "secure_asset.html" "scripts/lib/p5-1.5.0.js" -}} {{- end -}} {{- with partial "secure_asset.html" "scripts/nethack/dungeon.js" -}} {{- end -}} {{- range $script := .Resources.Match "*.js" -}} {{- $isModule := default true $script.Params.is_module -}} {{- end -}} {{ end }}