diff pspx.html @ 11:8037bad7d5a8 draft

Update documentation, fix some #forward bugs.
author David Barts <n5jrn@me.com>
date Wed, 15 May 2019 00:00:45 -0700
parents 75e375b1976a
children 336bc2f622e4
line wrap: on
line diff
--- a/pspx.html	Mon May 13 21:24:48 2019 -0700
+++ b/pspx.html	Wed May 15 00:00:45 2019 -0700
@@ -18,8 +18,10 @@
       header lines may appear only once in a given file.</p>
     <dl>
       <dt><code>#end</code></dt>
-      <dd>Marks the last line of the headers. Needed only for templating
-        languages where lines often start with <var>#</var>, such as Cheetah.</dd>
+      <dd>Marks the last line of the headers. Since the end of the header lines
+        is implicitly marked by the first line that does not start with <var>#</var>,
+        this is needed only for templating languages where lines often start
+        with <var>#</var>, such as Cheetah.</dd>
       <dt><code>#errors</code></dt>
       <dd>This is an error page which handles the specified HTTP error codes.
         See the subsection on error pages below. </dd>
@@ -74,10 +76,11 @@
       class as appropriate. </p>
     <h2>The Body</h2>
     <p>The body begins with the first line that <em>does not</em> start with <code>#</code>
-      and has the exact same syntax that the templates are in for this webapp.
-      By default, Chameleon templates are used. Cheetah, Jinja2, Mako, and
-      Bottle SimpleTemplate templates are also supported, provided the webapp
-      was launched to use them. (Only one template style per webapp is
+      (or the first line after the <code>#end</code> directive, whichever comes
+      first) and has the exact same syntax that the templates are in for this
+      webapp. By default, Chameleon templates are used. Cheetah, Jinja2, Mako,
+      and Bottle SimpleTemplate templates are also supported, provided the
+      webapp was launched to use them. (Only one template style per webapp is
       supported.)</p>
     <p>In order to make line numbers match file line numbers for reported
       errors, the template engine will be passed a blank line for each header