summaryrefslogtreecommitdiff
path: root/docs/narr/environment.rst
diff options
context:
space:
mode:
authorCasey Duncan <casey.duncan@gmail.com>2010-11-17 22:42:47 -0700
committerCasey Duncan <casey.duncan@gmail.com>2010-11-17 22:42:47 -0700
commit42247963d8ddf569e0e73040d90bca7c803323c4 (patch)
treecbd3779c5f6cace9cd692b5e32328278794636f5 /docs/narr/environment.rst
parent05354db0c0351a1f1543c9370c6e639d1fe5d1b5 (diff)
parent0511437d5250d249accda26ba6435ab737f8c0c5 (diff)
downloadpyramid-42247963d8ddf569e0e73040d90bca7c803323c4.tar.gz
pyramid-42247963d8ddf569e0e73040d90bca7c803323c4.tar.bz2
pyramid-42247963d8ddf569e0e73040d90bca7c803323c4.zip
Merge https://github.com/Pylons/pyramid
Diffstat (limited to 'docs/narr/environment.rst')
-rw-r--r--docs/narr/environment.rst48
1 files changed, 48 insertions, 0 deletions
diff --git a/docs/narr/environment.rst b/docs/narr/environment.rst
index 2aa4064cd..ecf85e464 100644
--- a/docs/narr/environment.rst
+++ b/docs/narr/environment.rst
@@ -201,6 +201,54 @@ should be changed accordingly.
| |
+-----------------------------+
+Mako Error Handler
+++++++++++++++++++
+
+Python callable which is called whenever Mako compile or runtime exceptions
+occur. The callable is passed the current context as well as the exception. If
+the callable returns True, the exception is considered to be handled, else it
+is re-raised after the function completes. Is used to provide custom
+error-rendering functions.
+
++-----------------------------+
+| Config File Setting Name |
++=============================+
+| ``mako.error_handler`` |
+| |
+| |
+| |
++-----------------------------+
+
+Mako Default Filters
+++++++++++++++++++++
+
+List of string filter names that will be applied to all Mako expressions.
+
++-----------------------------+
+| Config File Setting Name |
++=============================+
+| ``mako.default_filters`` |
+| |
+| |
+| |
++-----------------------------+
+
+Mako Import
++++++++++++
+
+String list of Python statements, typically individual “import” lines, which
+will be placed into the module level preamble of all generated Python modules.
+
+
++-----------------------------+
+| Config File Setting Name |
++=============================+
+| ``mako.imports`` |
+| |
+| |
+| |
++-----------------------------+
+
Examples
--------