progresses on #23

This commit is contained in:
Henrique Dias committed 2015-09-30 22:03:28 +01:00
1 parent c44dba20f1
commit aa8620c52c
8 files changed
+68 -32

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ func GET(w http.ResponseWriter, r *http.Request, c *config.Config, filename stri
// Create a new editor variable and set the extension
page := new(editor)
page.Mode = strings.TrimPrefix(filepath.Ext(filename), ".")
page.Name = filename
page.Name = strings.Replace(filename, c.Path, "", 1)
page.Config = c
page.IsPost = false