Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…filter
  • Loading branch information...
commit 5b543b9c9c059146ca668626b4bde8e74b49f051 1 parent 7f0b685
@posativ authored
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] += '/'
Please sign in to comment.
Something went wrong with that request. Please try again.