src/JsRender/PlainFile.vala
authorAlan Knowles <alan@roojs.com>
Wed, 11 Nov 2015 09:55:31 +0000 (17:55 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 11 Nov 2015 09:55:31 +0000 (17:55 +0800)
src/JsRender/PlainFile.vala

index 94f86f1..1d139ce 100644 (file)
@@ -32,12 +32,12 @@ namespace JsRender {
                    this.content_type = ct;
             } else {
                        this.content_type = "text/plain"; // hopefully..
-                       var ar = path.split(".");
-                       var ext = ar[ar.length -1]; // hopefully not fail...
+//                     var ar = path.split(".");
+  //                   var ext = ar[ar.length -1]; // hopefully not fail...
                        
-                       switch(ext) { 
-                               case "vala";
-                                       
+  //                   switch(ext) { 
+       //                      case "vala";
+                       this.loaded = true;
                        
             
             }