save file using webdav

This commit is contained in:
Henrique Dias
2016-10-18 16:17:01 +01:00
parent 10f7ae1d0d
commit 59f5109617
4 changed files with 47 additions and 43 deletions

View File

@@ -144,6 +144,8 @@ func (i *Info) serveSingleFile(w http.ResponseWriter, r *http.Request, c *config
}
page.Info.Data = editor
// TODO: if serve Single File finds an error while parsing, show the raw content to edit instead of giving 500
return page.PrintAsHTML(w, "frontmatter", "editor")
}