-
+ new JsRender.Lang_Class();
var app = BuilderApplication.singleton( args);
});
}
- if (BuilderApplication.opt_bjs_compile != null) {
-
- //BuilderApplication.compileBjs();
- print("compile BJS comming soon");
-
- GLib.Process.exit(Posix.EXIT_SUCCESS);
- }
+
if (BuilderApplication.opt_list_projects) {
//BuilderApplication.compileBjs();
if (cur_project == null) {
GLib.error("invalid project %s, use --list-projects to show project ids",BuilderApplication.opt_compile_project);
}
+ cur_project.scanDirs();
+
}
GLib.error("missing file %s in project %s", BuilderApplication.opt_bjs_compile, cur_project.name);
}
//BuilderApplication.compileBjs();
- print("compile BJS comming soon");
+ file.loadItems();
+ var str = file.toSourceCode();
+
+
+ if (!BuilderApplication.opt_debug) {
+ print("%s", str);
+ GLib.Process.exit(Posix.EXIT_SUCCESS);
+ }
+
+ // dump the node tree
+ file.tree.dumpProps();
+
+
+ var str_ar = str.split("\n");
+ for(var i =0;i<str_ar.length;i++) {
+ var node = file.tree.lineToNode(i+1);
+ var prop = node == null ? null : node.lineToProp(i+1);
+ print("%d: %s : %s\n",
+ i+1,
+ node == null ? "......" : (prop == null ? "????????" : prop),
+ str_ar[i]
+ );
+ }
GLib.Process.exit(Posix.EXIT_SUCCESS);
}
Gtk.init (ref args);
GtkClutter.init (ref args);
- new JsRender.Lang_Class();
+
GLib.Log.set_always_fatal(LogLevelFlags.LEVEL_ERROR | LogLevelFlags.LEVEL_CRITICAL);