Mercurial > genshi > mirror
diff 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 |
line wrap: on
line diff
--- a/doc/plugin.txt +++ b/doc/plugin.txt @@ -101,6 +101,14 @@ or may not be made available by your framework. TurboGears 1.0, for example, only passes a fixed set of options to all plugins. +``genshi.allow_exec`` +-------------------------- +Whether the Python code blocks should be permitted in templates. Specify "yes" +to allow code blocks (which is the default), or "no" otherwise. Please note +that disallowing code blocks in templates does not turn Genshi into a +sandboxable template engine; there are sufficient ways to do harm even using +plain expressions. + ``genshi.auto_reload`` ---------------------- Whether the template loader should check the last modification time of template