move templates to separate file

This commit is contained in:
Henrique Dias committed 2017-06-25 22:43:43 +01:00
1 parent cca2d9c4c6
commit b466ad616c
3 files changed
+90 -85

No files matched your search

+2
View File
@@ -103,6 +103,8 @@ func (p page) PreviousLink() string {
// PrintAsHTML formats the page in HTML and executes the template
func (p page) PrintAsHTML(w http.ResponseWriter, m *FileManager, templates ...string) (int, error) {
templates = append(templates, "templates")
if p.minimal {
templates = append(templates, "minimal")
} else {