summaryrefslogtreecommitdiff
path: root/repoze/bfg/templating.py
blob: c86c88ddd328e42ac0d902e9337dbc43a2ef642f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)