Exemplo n.º 1
0
 def minify_one(self, url, filename):
     filename, ext = filename.rsplit('.', 1)  
     filename = '%s.min.%s' % (filename, ext)
     if url.endswith('.js'):
         download(url, os.path.join(self.js_dir, filename), minify_js)
     elif url.endswith('.css'):
         download(url, os.path.join(self.css_dir, filename), minify_css)
Exemplo n.º 2
0
 def download_one(self, url, filename):
     if url.endswith('.js'):
         download(url, os.path.join(self.js_dir, filename))
     elif url.endswith('.css'):
         download(url, os.path.join(self.css_dir, filename))