resources/RooUsage.txt
[app.Builder.js] / src / JsRender / JsRender.vala
index 8309b71..db19fe2 100644 (file)
@@ -74,7 +74,7 @@ namespace JsRender {
                        this.content_type = "";
                        this.build_module = "";
                        this.loaded = false;
-                       print("JsRender.cto() - reset transStrings\n");
+                       //print("JsRender.cto() - reset transStrings\n");
                        this.transStrings = new Gee.HashMap<string,string> ();
                        
                        // should use basename reallly...
@@ -174,7 +174,7 @@ namespace JsRender {
                                         File.new_for_path(dir).make_directory();
                                }
                        } catch (GLib.Error e) {
-                               // 
+                               // eakk.. what to do here...
                        }
                        var fname = dir + "/" + m5 + ".png";
                        
@@ -335,32 +335,7 @@ namespace JsRender {
                }
                 
                
-               /**
-                * 
-                * munge JSON tree into Javascript code.
-                *
-                * NOTE - needs a deep copy of original tree, before starting..
-                *     - so that it does not modify current..
-                * 
-                * FIXME: + or / prefixes to properties hide it from renderer.
-                * FIXME: '*props' - not supported by this.. ?? - upto rendering code..
-                * FIXME: needs to understand what properties might be translatable (eg. double quotes)
-                * 
-                * @arg {object} obj the object or array to munge..
-                * @arg {boolean} isListener - is the array being sent a listener..
-                * @arg {string} pad - the padding to indent with. 
-                */
                
-               public string mungeToString(string pad)
-               {
-                       if (this.tree == null) {
-                               return "";
-                       }
-                       var x = new NodeToJs(this.tree, this.doubleStringProps, pad);
-                       return x.munge();
-                       
-                   
-               }
                public  Node? lineToNode(int line)
                {
                        if (this.tree == null) {
@@ -375,6 +350,7 @@ namespace JsRender {
                public abstract void save();
                public abstract void saveHTML(string html);
                public abstract string toSource() ;
+               public abstract string toSourceCode() ; // used by commandline tester..
                public abstract void setSource(string str);
                public abstract string toSourcePreview() ;
                public abstract void removeFiles() ;