Mercurial > genshi > mirror
comparison doc/plugin.txt @ 538:e9db4aca70f0 trunk
Add `loader_callback` option to plugin interface as requested in #130.
author | cmlenz |
---|---|
date | Thu, 28 Jun 2007 17:04:54 +0000 |
parents | 1154f2aadb6c |
children | 619340e2d805 |
comparison
equal
deleted
inserted
replaced
537:8227900a442c | 538:e9db4aca70f0 |
---|---|
188 a general recommendation, if you don't have a special requirement to produce | 188 a general recommendation, if you don't have a special requirement to produce |
189 well-formed XML, you should probably use the **html** option for your web sites. | 189 well-formed XML, you should probably use the **html** option for your web sites. |
190 | 190 |
191 .. _`Understanding HTML, XML and XHTML`: http://webkit.org/blog/?p=68 | 191 .. _`Understanding HTML, XML and XHTML`: http://webkit.org/blog/?p=68 |
192 | 192 |
193 ``genshi.loader_callback`` | |
194 -------------------------- | |
195 The callback function that should be invoked whenever the template loader loads | |
196 a new template. | |
197 | |
198 .. note:: Unlike the other options, this option can **not** be passed as | |
199 a string value, but rather must be a reference to the actual function. | |
200 That effectively means it can not be set from (non-Python) | |
201 configuration files. | |
202 | |
193 ``genshi.lookup_errors`` | 203 ``genshi.lookup_errors`` |
194 ------------------------ | 204 ------------------------ |
195 The error handling style to use in template expressions. Can be either | 205 The error handling style to use in template expressions. Can be either |
196 **lenient** (the default) or **strict**. See the `Error Handling`_ section for | 206 **lenient** (the default) or **strict**. See the `Error Handling`_ section for |
197 detailled information on the differences between these two modes. | 207 detailled information on the differences between these two modes. |