aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-05-07 00:51:49 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-05-07 00:51:49 +0200
commitdaebe74b0a08df5685aedee63480936d5d98fbc2 (patch)
tree3315f386bcb20c2c302b62025ec4ddf20a940342
parent73e1da5d04e27e56b584ce6dce4eb086eb7413fe (diff)
downloadperlisdead-daebe74b0a08df5685aedee63480936d5d98fbc2.tar.gz
Add README
-rw-r--r--README22
1 files changed, 22 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..b29831e
--- /dev/null
+++ b/README
@@ -0,0 +1,22 @@
+gen.pl is a simple Perl script that generates a web site, placed
+in the out/ directory, from files in src/, inc/ and run/.
+
+Every file in src/ is copied verbatim to out/, except index.html,
+which is processed according to the following rules:
+
+ * Lines beginning with .inc trigger the inclusion of a given file
+ in inc/.
+ * Lines beginning with .eval trigger the evaluation of the following
+ Perl code.
+ * Lines beginning with .run trigger the execution of a Perl script
+ in run/.
+ * All other lines are copied verbatim.
+
+The Perl scripts in run/ are written in such a way that they can
+be run both as standalone scripts and as part of the genaration
+process.
+
+The resulting out/ directory is to be served by a web server, such
+as Apache.
+
+The gen.pl script is to be run regularly via a cron job.