X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=rags.git;a=blobdiff_plain;f=README;h=3fa1913f6006f6f911094532fc26de21abf5c048;hp=f178757b8dbd39bb400a5471335ca788ca6c1b0c;hb=HEAD;hpb=aaf0af208b551e46ded385334e40e8cde6b0d90f 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.