summaryrefslogtreecommitdiff
path: root/repoze/bfg/templating.py
diff options
context:
space:
mode:
Diffstat (limited to 'repoze/bfg/templating.py')
-rw-r--r--repoze/bfg/templating.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/repoze/bfg/templating.py b/repoze/bfg/templating.py
new file mode 100644
index 000000000..c86c88ddd
--- /dev/null
+++ b/repoze/bfg/templating.py
@@ -0,0 +1,16 @@
+from zope.deprecation import deprecated
+
+from repoze.bfg.renderers import template_renderer_factory
+
+deprecated('renderer_from_cache',
+ 'The repoze.bfg.templating.renderer_from_cache function has '
+ 'been deprecated. As of repoze.bfg version 1.1, you should use the '
+ 'repoze.bfg.renderers.template_renderer_factory function instead. '
+ 'Note however that neither the "renderer_from_cache" function '
+ 'nor the "template_renderer_factory" function is a documented '
+ 'BFG API. You shouldn\'t be importing either of these unless '
+ 'you are willing to deal with incompatibilities introduced in '
+ 'future BFG versions.')
+
+def renderer_from_cache(path, impl, level=4, **kw):
+ return template_renderer_factory(path, impl, level)