1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-02 15:06:23 -07:00
gochan/templates/consts.js
2024-04-02 12:33:12 -07:00

13 lines
399 B
JavaScript

{{/*
This will be used for storing configuration-dependent JS variables,
instead of loading them on every HTML page.
*/ -}}
var styles = [
{{- range $ii, $style := .styles -}}
{{if gt $ii 0}},{{end -}}
{Name: "{{js $style.Name}}", Filename: "{{js $style.Filename}}"}
{{- end -}}
];
var defaultStyle = "{{js .defaultStyle}}";
var webroot = "{{js .webroot}}";
var serverTZ = {{js .timezone}};