diff options
Diffstat (limited to 'repoze/bfg/interfaces.py')
| -rw-r--r-- | repoze/bfg/interfaces.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py index 992ec80d9..def957dad 100644 --- a/repoze/bfg/interfaces.py +++ b/repoze/bfg/interfaces.py @@ -179,6 +179,15 @@ class IRendererFactory(Interface): def __call__(name): """ Return an object that implements ``IRenderer`` """ +class IRendererGlobalsFactory(Interface): + def __call__(system_values): + """ Return a dictionary of global renderer values (aka + top-level template names). The ``system_values`` value passed + in will be a dictionary that includes at least a ``request`` + key, indicating the current request, and the value + ``renderer_name``, which will be the name of the renderer in + use.""" + class ITemplateRenderer(IRenderer): def implementation(): """ Return the object that the underlying templating system |
