src/JsRender/PlainFile.vala
authorAlan Knowles <alan@roojs.com>
Wed, 27 May 2015 07:30:50 +0000 (15:30 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 27 May 2015 07:30:50 +0000 (15:30 +0800)
src/JsRender/PlainFile.vala

index fcbd43f..9765357 100644 (file)
@@ -77,35 +77,9 @@ namespace JsRender {
       
         public override string toSource()
         {
-        
-            
-            if (this.tree == null) {
-                return "";
-            }
-            
-            // var data = JSON.parse(JSON.stringify(this.items[0]));
-            // we should base this on the objects in the tree really..
-            string[]  inc = { "Gtk", "Gdk", "Pango", "GLib", "Gio", "GObject", 
-                "GtkSource", "WebKit", "Vte" }; //, "GtkClutter" , "Gdl"];
-            var src = "";
-                        
-            for (var i=0; i< inc.length; i++) {
-                               var e = inc[i];
-                src += e+" = imports.gi." + e +";\n";
-            }
-            
-            src += "console = imports.console;\n"; // path?!!?
-            src += "XObject = imports.XObject.XObject;\n"; // path?!!?
-            
-            
-            src += this.name + "=new XObject("+ this.mungeToString("    ") + ");\n";
-            src += this.name + ".init();\n";
-            // register it in the cache
-            src += "XObject.cache['/" + this.name + "'] = " + this.name + ";\n";
-            
-            
-            return src;
+                       return "";
             
+             
             
         }