diff --git a/server/templates.go b/server/templates.go index a0d1ce17..45d75c84 100644 --- a/server/templates.go +++ b/server/templates.go @@ -27,6 +27,10 @@ var requiredTmpls = []string{ // TemplateConfig describes. type TemplateConfig struct { + // TODO(ericchiang): Asking for a directory with a set of templates doesn't indicate + // what the templates should look like and doesn't allow consumers of this package to + // provide their own templates in memory. In the future clean this up. + // Directory of the templates. If empty, these will be loaded from memory. Dir string `yaml:"dir"` diff --git a/server/templates_default.go b/server/templates_default.go index fc272675..63b5aaa9 100644 --- a/server/templates_default.go +++ b/server/templates_default.go @@ -4,9 +4,347 @@ package server // defaultTemplates is a key for file name to file data of the files in web/templates. var defaultTemplates = map[string]string{ - "approval.html": "{{ template \"header.html\" . }}\n\n