From: Armin Ronacher Date: Fri, 8 Jun 2007 11:02:38 +0000 (+0200) Subject: [svn] fixed package loader in buffet plugin X-Git-Tag: 2.0rc1~293 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=17d3b3dd1097e22fb561e7c793db75564ed507d1;p=jinja2.git [svn] fixed package loader in buffet plugin --HG-- branch : trunk --- diff --git a/jinja/plugin.py b/jinja/plugin.py index d05c5f8..415a2e0 100644 --- a/jinja/plugin.py +++ b/jinja/plugin.py @@ -39,11 +39,11 @@ class BuffetPlugin(object): memcache_size = opt.pop('memcache_size', 40) cache_folder = opt.pop('cache_folder', None) auto_reload = opt.pop('auto_reload', True) - if 'searchpath' in options: + if 'searchpath' in opt: opt['loader'] = FileSystemLoader(opt.pop('searchpath'), use_memcache, memcache_size, cache_folder, auto_reload) - elif 'package' in options: + elif 'package' in opt: opt['loader'] = PackageLoader(opt.pop('package'), opt.pop('package_path', ''), use_memcache, memcache_size,