Mercurial > cgi-bin > hgweb.cgi > tincan
comparison doc/api_reference.rst @ 63:8867b3a5c4fa draft
Some minor fixes.
author | David Barts <n5jrn@me.com> |
---|---|
date | Thu, 20 Jun 2019 21:52:30 -0700 |
parents | fd8c558a89bb |
children |
comparison
equal
deleted
inserted
replaced
62:fd8c558a89bb | 63:8867b3a5c4fa |
---|---|
112 ================= | 112 ================= |
113 | 113 |
114 A ``.pspx`` file is a standard Chameleon template, plus a set of optional *header directives* that may be present to override the default behavior of the created page or its associated route. | 114 A ``.pspx`` file is a standard Chameleon template, plus a set of optional *header directives* that may be present to override the default behavior of the created page or its associated route. |
115 | 115 |
116 ``#end`` | 116 ``#end`` |
117 Marks the last line of the headers. This is not currently necessary, as headers are implicitly ended by the first line which does not start with a leading "#". This directive mainly here to facilitate future support of alternate templating engines. | 117 Marks the last line of the headers. This is not currently necessary, as headers are implicitly ended by the first line which does not start with a leading "#". This directive is mainly here to facilitate future support of alternate templating engines. |
118 | 118 |
119 ``#errors`` | 119 ``#errors`` |
120 This is an error page which handles the specified error codes; any code-behind associated with this page must be based on the ``tincan.ErrorPage`` class. | 120 This is an error page which handles the specified error codes; any code-behind associated with this page must be based on the ``tincan.ErrorPage`` class. |
121 | 121 |
122 ``#forward`` | 122 ``#forward`` |
145 The ``#errors`` directive takes a list of numeric error codes (values from 400 to 599 are allowed), separated by spaces; the page is created to handle the specified errors. If no error codes are specified, the page will handle all errors. The behavior of specifying multiple error pages for the same error code is undefined; doing so is best avoided. | 145 The ``#errors`` directive takes a list of numeric error codes (values from 400 to 599 are allowed), separated by spaces; the page is created to handle the specified errors. If no error codes are specified, the page will handle all errors. The behavior of specifying multiple error pages for the same error code is undefined; doing so is best avoided. |
146 | 146 |
147 Templates with No Explicit Code-Behind | 147 Templates with No Explicit Code-Behind |
148 -------------------------------------- | 148 -------------------------------------- |
149 | 149 |
150 Code-behind is optional for both normal and error page templates. If code-behind is not provided, TinCan will use the Page or ErrorPage class as appropriate. | 150 Code-behind is optional for both normal and error page templates. If code-behind is not provided, TinCan will use the ``Page`` or ``ErrorPage`` class as appropriate. |
151 | 151 |
152 .. _loading-templates: | 152 .. _loading-templates: |
153 | 153 |
154 Loading Templates | 154 Loading Templates |
155 ----------------- | 155 ----------------- |