move templates to separate file
This commit is contained in:
3 files changed
+90
-85
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user