Fix #7959 - new project flow - use void func to callback after each step, tidy up...
[roobuilder] / src / JsRender / JsRender.vala
index adf5d55..04f590b 100644 (file)
@@ -61,7 +61,16 @@ namespace JsRender {
                        private set {}
                }
                
-               
+               public string file_ext {
+                       public owned get {
+                               if (!this.path.contains(".")) {
+                                       return "";
+                               }
+                               var bits = this.name.split(".");
+                               return bits[bits.length-1];
+                       }
+                       private set {}
+               }
                public string parent = "";  // JS parent.
                public string region = "";  // RooJS - insert region.