self.lookups = {}
def __call__(self, filename, directories, module_directory=None,
- collection_size=-1, content_type='text/html; charset=utf-8'):
+ collection_size=-1, content_type='text/html; charset=utf-8',
+ imports=[]):
# Find the appropriate template lookup.
key = (tuple(directories), module_directory)
try:
default_filters=['decode.utf8'],
input_encoding='utf-8',
output_encoding='utf-8',
+ imports=imports,
)
self.lookups[key] = lookup
cherrypy.request.lookup = lookup