aboutsummaryrefslogtreecommitdiff
path: root/tmpl/edit
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl/edit')
-rw-r--r--tmpl/edit9
1 files changed, 9 insertions, 0 deletions
diff --git a/tmpl/edit b/tmpl/edit
new file mode 100644
index 0000000..16b7846
--- /dev/null
+++ b/tmpl/edit
@@ -0,0 +1,9 @@
+{{define "title"}}Editing {{.Title}}{{end}}
+{{define "content"}}
+<form action="/save/{{.Title}}" method="POST">
+<textarea name="body" rows="20" cols="80">{{printf "%s" .Body}}</textarea>
+<br>
+<input type="submit" value="Save">
+<input type="reset" value="Reset">
+</form>
+{{end}}