1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-19 12:36:23 -07:00
gochan/templates/consts.js

14 lines
No EOL
371 B
JavaScript

const styles = [
{{- range $ii, $style := .styles -}}
{{if gt $ii 0}},{{end -}}
{Name: "{{js $style.Name}}", Filename: "{{js $style.Filename}}"}
{{- end -}}
];
const defaultStyle = "{{js .defaultStyle}}";
const webroot = "{{js .webroot}}";
const serverTZ = {{js .timezone}};
const fileTypes = [
{{- range $ext, $_ := .fileTypes -}}
"{{js $ext}}",
{{- end -}}
];