Browse files

deprecate Jinja2 and Mako asset filter in favour of generic Template …

…filter
  • Loading branch information...
1 parent 7f0b685 commit 5b543b9c9c059146ca668626b4bde8e74b49f051 @posativ committed Mar 1, 2013
Showing with 12 additions and 0 deletions.
  1. +12 −0 acrylamid/defaults/__init__.py
View
12 acrylamid/defaults/__init__.py
@@ -55,11 +55,23 @@
def normalize(conf):
+ # deprecated since 0.8
if isinstance(conf['static'], list):
conf['static'] = conf['static'][0]
log.warn("multiple static directories has been deprecated, " + \
"Acrylamid continues with '%s'.", conf['static'])
+ # deprecated since 0.8
+ for fx in 'Jinja2', 'Mako':
+ try:
+ conf['static_filter'].remove(fx)
+ except ValueError:
+ pass
+ else:
+ log.warn("%s asset filter has been renamed to `Template` and is "
+ "included by default.", fx)
+
+
for key in 'content_dir', 'theme', 'static', 'output_dir':
if conf[key] is not None and not conf[key].endswith('/'):
conf[key] += '/'

0 comments on commit 5b543b9

Please sign in to comment.