dosage/doc/web/hooks/__hooks__.py

14 lines
382 B
Python
Raw Normal View History

2013-03-29 10:01:04 +00:00
# -*- coding: iso-8859-1 -*-
def compress_javascript(config, output_path):
from mediacompress import compress_js_files
compress_js_files(output_path, excludes=("*.min.js",))
def compress_css(config, output_path):
from mediacompress import compress_css_files
compress_css_files(output_path)
hooks = {
'site.output.post': [compress_javascript, compress_css],
}