Mercurial > cgi-bin > hgweb.cgi > tincan
comparison pspx.html @ 6:a3823da7bb45 draft
Minor tweaks.
author | David Barts <n5jrn@me.com> |
---|---|
date | Mon, 13 May 2019 15:18:02 -0700 |
parents | 31bb8400e6e3 |
children | 75e375b1976a |
comparison
equal
deleted
inserted
replaced
5:31bb8400e6e3 | 6:a3823da7bb45 |
---|---|
19 <dl> | 19 <dl> |
20 <dt><code>#end</code></dt> | 20 <dt><code>#end</code></dt> |
21 <dd>Marks the last line of the headers. Needed only for templating | 21 <dd>Marks the last line of the headers. Needed only for templating |
22 languages where lines often start with <span class="kbd">#</span>, such | 22 languages where lines often start with <span class="kbd">#</span>, such |
23 as Cheetah.</dd> | 23 as Cheetah.</dd> |
24 <dd> <br> | |
25 </dd> | |
26 <dt><code>#errors</code></dt> | 24 <dt><code>#errors</code></dt> |
27 <dd>Ignore other headers and make this is an error page which handles the | 25 <dd>Ignore other headers and make this is an error page which handles the |
28 specified HTTP error codes. See the subsection on error pages below. </dd> | 26 specified HTTP error codes. See the subsection on error pages below. </dd> |
29 <dt><code>#forward</code></dt> | 27 <dt><code>#forward</code></dt> |
30 <dd>Ignore everything else in this template (and any code-behind | 28 <dd>Ignore everything else in this template (and any code-behind |
55 </dl> | 53 </dl> |
56 <p>It is possible to include whitespace and special characters in arguments | 54 <p>It is possible to include whitespace and special characters in arguments |
57 to the <code>#forward</code>, <code>#python</code>, and <code>#template</code> | 55 to the <code>#forward</code>, <code>#python</code>, and <code>#template</code> |
58 headers by using standard Python string quoting and escaping methods. For | 56 headers by using standard Python string quoting and escaping methods. For |
59 example, <code>#python "space case.py"</code>.</p> | 57 example, <code>#python "space case.py"</code>.</p> |
58 <p>Header directives that don't take arguments as a rule simply ignore them. | |
59 For example, <code>#end headers</code> has the same effect as <code>#end</code>. | |
60 <h3>Error Pages</h3> | 60 <h3>Error Pages</h3> |
61 <p>Error pages supersede the standard Bottle error handling, and are created | 61 <p>Error pages supersede the standard Bottle error handling, and are created |
62 by using the <code>#errors</code> page header. <em>Error pages have no | 62 by using the <code>#errors</code> page header. <em>Error pages have no |
63 associated code-behind;</em> they consist of templates only. Error page | 63 associated code-behind;</em> they consist of templates only. Error page |
64 templates are provided with two variables when rendering:</p> | 64 templates are provided with two variables when rendering:</p> |