From: Tim Vaughan Date: Wed, 27 May 2020 08:13:50 +0000 (+0200) Subject: Updated readme. X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=4dbf602718fcb94317b336c558f72c3b2ae928ab;p=rags.git Updated readme. --- diff --git a/README b/README index f178757..3fa1913 100644 --- 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. +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.