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

index 5fa5a67..94f86f1 100644 (file)
@@ -31,9 +31,14 @@ namespace JsRender {
                        var ct = info.get_content_type();
                    this.content_type = ct;
             } else {
+                       this.content_type = "text/plain"; // hopefully..
                        var ar = path.split(".");
                        var ext = ar[ar.length -1]; // hopefully not fail...
                        
+                       switch(ext) { 
+                               case "vala";
+                                       
+                       
             
             }