src/JsRender/Node.vala
[app.Builder.js] / src / JsRender / Roo.vala
index 5209037..77b5d57 100644 (file)
@@ -87,11 +87,11 @@ namespace JsRender {
         {
             
                                 
-                       print("load Items!");
+                       GLib.debug("load Items!");
                        if (this.tree != null) {
                                return;
                        }
-                       print("load " + this.path);
+                       GLib.debug("load " + this.path);
 
                        var pa = new Json.Parser();
                        pa.load_from_file(this.path);
@@ -401,6 +401,13 @@ namespace JsRender {
          * 
          * 
          */
+        public override string toSourceCode() 
+        {
+                       this.transStrings = new Gee.HashMap<string,string>();
+                       this.findTransStrings(this.tree);
+                       return this.toSource();
+               }
+         
         public override string toSource()
         {
             // dump the file tree back out to a string.