def pack(args): " Pack files. " from zetalibrary.packer import Packer args = parse_config(args) for path in gen_files(args.source, prefix=args.prefix): Packer(path, args).pack()
def test_route(self): css_file = op.join(self.folder, 'main.css') js_file = op.join(self.folder, 'main.js') result = list(gen_files(self.folder)) self.assertTrue(css_file in result) self.assertTrue(js_file in result)