diff options
author | Cameron Moore <moorereason@gmail.com> | 2018-09-06 17:00:19 -0500 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-09-07 08:25:51 +0200 |
commit | 3f45e729f4e0296bb1a3558d60087bec8321444b (patch) | |
tree | 7f8d5ad32c7fe6962ebc0ac974786f4338584e1f /output/layout_base.go | |
parent | ffaa73dc8aa860edb3476b2a460774071b8470a4 (diff) |
output: Fix golint godoc issues
Diffstat (limited to 'output/layout_base.go')
-rw-r--r-- | output/layout_base.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/output/layout_base.go b/output/layout_base.go index d3c52347c..b8930df82 100644 --- a/output/layout_base.go +++ b/output/layout_base.go @@ -30,6 +30,7 @@ var ( goTemplateInnerMarkers = [][]byte{[]byte("{{define"), []byte("{{ define"), []byte("{{- define"), []byte("{{-define")} ) +// TemplateNames represents a template naming scheme. type TemplateNames struct { // The name used as key in the template map. Note that this will be // prefixed with "_text/" if it should be parsed with text/template. @@ -39,6 +40,7 @@ type TemplateNames struct { MasterFilename string } +// TemplateLookupDescriptor describes the template lookup configuration. type TemplateLookupDescriptor struct { // The full path to the site root. WorkingDir string @@ -62,6 +64,7 @@ func isShorthCodeOrPartial(name string) bool { return strings.HasPrefix(name, "shortcodes/") || strings.HasPrefix(name, "partials/") } +// CreateTemplateNames returns a TemplateNames object for a given template. func CreateTemplateNames(d TemplateLookupDescriptor) (TemplateNames, error) { name := filepath.ToSlash(d.RelPath) |