Mercurial > genshi > mirror
comparison doc/plugin.txt @ 545:619340e2d805 trunk
Support for Python code blocks in templates can now be disabled. Closes #123.
author | cmlenz |
---|---|
date | Thu, 28 Jun 2007 23:00:24 +0000 |
parents | e9db4aca70f0 |
children | 1cc1afc39176 |
comparison
equal
deleted
inserted
replaced
544:82e37439c5f4 | 545:619340e2d805 |
---|---|
98 | 98 |
99 The plugin API allows plugins to be configured using a dictionary of strings. | 99 The plugin API allows plugins to be configured using a dictionary of strings. |
100 The following is a list of configuration options that Genshi supports. These may | 100 The following is a list of configuration options that Genshi supports. These may |
101 or may not be made available by your framework. TurboGears 1.0, for example, | 101 or may not be made available by your framework. TurboGears 1.0, for example, |
102 only passes a fixed set of options to all plugins. | 102 only passes a fixed set of options to all plugins. |
103 | |
104 ``genshi.allow_exec`` | |
105 -------------------------- | |
106 Whether the Python code blocks should be permitted in templates. Specify "yes" | |
107 to allow code blocks (which is the default), or "no" otherwise. Please note | |
108 that disallowing code blocks in templates does not turn Genshi into a | |
109 sandboxable template engine; there are sufficient ways to do harm even using | |
110 plain expressions. | |
103 | 111 |
104 ``genshi.auto_reload`` | 112 ``genshi.auto_reload`` |
105 ---------------------- | 113 ---------------------- |
106 Whether the template loader should check the last modification time of template | 114 Whether the template loader should check the last modification time of template |
107 files, and automatically reload them if they have been changed. Specify "yes" | 115 files, and automatically reload them if they have been changed. Specify "yes" |