resources/RooUsage.txt
[app.Builder.js] / src / JsRender / PlainFile.vala
index 1d139ce..6987287 100644 (file)
@@ -84,9 +84,11 @@ namespace JsRender {
     
        public   override void  loadItems() throws GLib.Error // : function(cb, sync) == original was async.
        {
-          
-              GLib.FileUtils.get_contents(this.path, out this.contents);
-              this.loaded = true;
+                       if (this.loaded) {
+                               return;
+                       }
+               GLib.FileUtils.get_contents(this.path, out this.contents);
+               this.loaded = true;
        }
      
         
@@ -105,7 +107,13 @@ namespace JsRender {
              
             
         }
-               
+                public override string toSourceCode()
+        {
+                       return this.contents;
+            
+             
+            
+        }
         public override void save() {
                if (!this.loaded) {
                        print("Ignoring Save  - as file was never loaded?\n");