Browse Source

Added default url binding to JS/CSS controllers.

Taddeus Kroes 14 years ago
parent
commit
cb869fa4aa
1 changed files with 9 additions and 0 deletions
  1. 9 0
      controllers.py

+ 9 - 0
controllers.py

@@ -2,5 +2,14 @@ from importer import Importer
 
 
 class JsCache(Importer):
+    __url__ = '/js/(.*)'
+
     def __init__(self, root):
         Importer.__init__(self, root=root, extension='js')
+
+
+class CssCache(Importer):
+    __url__ = '/css/(.*)'
+
+    def __init__(self, root):
+        Importer.__init__(self, root=root, extension='css')