summaryrefslogtreecommitdiff
path: root/handler.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-02-09 22:00:32 +0100
committerxengineering <me@xengineering.eu>2023-02-09 22:00:32 +0100
commitf2b0733eefc56dcee210ecd1fbe6a9d5d159d6f0 (patch)
tree8b5544f7a8c303887fc1e6745e63de0e0465a4bf /handler.go
parent5c41fda52bfe6c0ab898a284ed9373f12a04c92b (diff)
downloadceres-f2b0733eefc56dcee210ecd1fbe6a9d5d159d6f0.tar
ceres-f2b0733eefc56dcee210ecd1fbe6a9d5d159d6f0.tar.zst
ceres-f2b0733eefc56dcee210ecd1fbe6a9d5d159d6f0.zip
Remove commented code
Diffstat (limited to 'handler.go')
-rw-r--r--handler.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/handler.go b/handler.go
index 2cb8787..3bdccfd 100644
--- a/handler.go
+++ b/handler.go
@@ -200,11 +200,6 @@ func recipeEditGet(w http.ResponseWriter, r *http.Request, db *Database, templat
return
}
- // render markdown
- // var buf bytes.Buffer
- // goldmark.Convert([]byte(elements[0].DescriptionMarkdown), &buf)
- // elements[0].RenderedDescriptionMarkdown = buf.String()
-
// render and return template
path := filepath.Join(templateRoot, "recipe_edit.html")
ServeTemplate(w, "recipe", path, elements[0])