# HG changeset patch # User David Barts # Date 1557785882 25200 # Node ID a3823da7bb4597ebfce879426507eec2355b25b1 # Parent 31bb8400e6e3dd7dacf0a976140501f78f729d78 Minor tweaks. diff -r 31bb8400e6e3 -r a3823da7bb45 pspx.html --- 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 @@
Marks the last line of the headers. Needed only for templating languages where lines often start with #, such as Cheetah.
-

-
#errors
Ignore other headers and make this is an error page which handles the specified HTTP error codes. See the subsection on error pages below.
@@ -57,6 +55,8 @@ to the #forward, #python, and #template headers by using standard Python string quoting and escaping methods. For example, #python "space case.py".

+

Header directives that don't take arguments as a rule simply ignore them. + For example, #end headers has the same effect as #end.

Error Pages

Error pages supersede the standard Bottle error handling, and are created by using the #errors page header. Error pages have no diff -r 31bb8400e6e3 -r a3823da7bb45 tincan.py --- 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):