Updated readme.
authorTim Vaughan <plugd@thelambdalab.xyz>
Wed, 27 May 2020 08:13:50 +0000 (10:13 +0200)
committerTim Vaughan <plugd@thelambdalab.xyz>
Wed, 27 May 2020 08:13:50 +0000 (10:13 +0200)
README

diff --git a/README b/README
index f178757..3fa1913 100644 (file)
--- a/README
+++ b/README
@@ -7,6 +7,20 @@ RAGS follows a similar philosophy to that of the Scratchy gopher
 server, in that it allows dynamic content to be generated using
 embedded Scheme expressions.
 
 server, in that it allows dynamic content to be generated using
 embedded Scheme expressions.
 
+For eample, if this readme was a file in the gemini content directory
+and had its execute bits set, the following would insert the current
+time into the document when it was served:
+,(eval
+  (begin
+    (import (chicken time posix))
+    (print "The time is " (seconds->string))))
+
+(This applies to all executable text/* documents, regardless of the
+specific content type.)
+    
+Similarly, shell script output can be incorporated:
+,(shell "uptime")
+
 The server is still under heavy development, and the source is
 currently the only documentation.
 
 The server is still under heavy development, and the source is
 currently the only documentation.