1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-02 10:56:25 -07:00
gochan/templates/consts.js
Eggbertx 267a5eeb6f Start making templates more readable
Also change most remaining underscore var names to camelCase
2019-12-06 20:03:37 -08:00

12 lines
366 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 = "{{.DefaultStyle}}";
var webroot = "{{.SiteWebfolder}}";