changeset 6:a3823da7bb45 draft

Minor tweaks.
author David Barts <n5jrn@me.com>
date Mon, 13 May 2019 15:18:02 -0700
parents 31bb8400e6e3
children 57ec65f527e9
files pspx.html tincan.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/pspx.html	Mon May 13 14:47:04 2019 -0700
+++ b/pspx.html	Mon May 13 15:18:02 2019 -0700
@@ -21,8 +21,6 @@
       <dd>Marks the last line of the headers. Needed only for templating
         languages where lines often start with <span class="kbd">#</span>, such
         as Cheetah.</dd>
-      <dd> <br>
-      </dd>
       <dt><code>#errors</code></dt>
       <dd>Ignore other headers and make this is an error page which handles the
         specified HTTP error codes. See the subsection on error pages below. </dd>
@@ -57,6 +55,8 @@
       to the <code>#forward</code>, <code>#python</code>, and <code>#template</code>
       headers by using standard Python string quoting and escaping methods. For
       example, <code>#python "space case.py"</code>.</p>
+    <p>Header directives that don't take arguments as a rule simply ignore them.
+      For example, <code>#end headers</code> has the same effect as <code>#end</code>.
     <h3>Error Pages</h3>
     <p>Error pages supersede the standard Bottle error handling, and are created
       by using the <code>#errors</code> page header. <em>Error pages have no
--- a/tincan.py	Mon May 13 14:47:04 2019 -0700
+++ b/tincan.py	Mon May 13 15:18:02 2019 -0700
@@ -379,7 +379,7 @@
             self._body = self._tclass(source=self._template.body)
         self._body.prepare()
         # Register this thing with Bottle
-        print("adding route:", self._origin)  # debug
+        print("adding route:", self._origin, '('+','.join(methods)+')')  # debug
         self._app.route(self._origin, methods, self)
 
     def _splitpath(self, unsplit):