Added missing help file.
authorTim Vaughan <plugd@thelambdalab.xyz>
Fri, 29 May 2020 09:36:26 +0000 (11:36 +0200)
committerTim Vaughan <plugd@thelambdalab.xyz>
Fri, 29 May 2020 09:36:26 +0000 (11:36 +0200)
help.scm [new file with mode: 0755]

diff --git a/help.scm b/help.scm
new file mode 100755 (executable)
index 0000000..991a71f
--- /dev/null
+++ b/help.scm
@@ -0,0 +1,22 @@
+(lambda (uri)
+  (import (chicken file)
+          (chicken pathname)
+          (chicken string)
+          uri-common)
+  (let ((query (uri-query uri)))
+    (if (null? query)
+        (print "No account specified.")
+        (begin
+          (serve-document-header (ext->mime "gmi"))
+          (print "# Caring for your plant\n\n"
+                 "Growing a healthy plant is a big job!  Here are the essential points:\n"
+                 "\n"
+                 "* Water your seed at least once in the first 24hrs after planting.\n"
+                 "* Water your plants every day, otherwise its growth may be stunted.̱\n"
+                 "* Important: Plants that are not watered for 5 days will die!\n"
+                 "\n"
+                 "Heed these rules and your plant will thrive!\n"
+                 "\n"
+                 "=> " (uri->string
+                        (update-uri uri path: '(/ "microbotany" "view.scm")))
+                       " Return to your garden")))))