Explorar o código

JavaScript/CSS extensions now extend the Importer class.

Taddeus Kroes %!s(int64=14) %!d(string=hai) anos
pai
achega
2e3089fae9
Modificáronse 2 ficheiros con 8 adicións e 6 borrados
  1. 4 3
      css.py
  2. 4 3
      js.py

+ 4 - 3
css.py

@@ -1,5 +1,6 @@
-from cache import Cache
+from importer import Importer
 
 
-class CssCache(Cache):
-    pass
+class CssCache(Importer):
+    def __init__(self, root):
+        Importer.__init__(self, root=root, extension='css')

+ 4 - 3
js.py

@@ -1,5 +1,6 @@
-from cache import Cache
+from importer import Importer
 
 
-class JsCache(Cache):
-    pass
+class JsCache(Importer):
+    def __init__(self, root):
+        Importer.__init__(self, root=root, extension='js')