1 var mys = "1 this is <?njs \n\n\n\n\n calling:asdf \n\n\n\n ?> for \n\n\n the second one its <?njs this.fucku ?> end here <?njs asdfasdf asdf?>";
4 //var tool = mys.split("<?njs");
7 for(var i=0; i < tool.length; i++) {
9 console.log("this t: '%s'", thist.trim());
10 var calling = thist.split("?>")[0].trim();
11 console.log("calling: '%s'", calling);
15 function splitandcall(thisstring) {
16 var tool = thisstring.split("<?njs");
20 //console.log("output: '%s'", tool[thisoffset-1].replace("/^start://", ""));
22 function calloffset() {
23 var thisca = tool[thisoffset];
24 var calling = thisca.split("?>");
25 dummy_call(calling[0].trim(), function() {
27 if(thisoffset < tool.length) {
28 console.log("output: '%s'", calling[1]);
31 console.log("output: '%s'", calling[1]);
32 console.log("at end");
41 function dummy_call(name, callback)
43 console.log("in '%s' for name", name);
47 console.log("mys: '%s'", mys);
48 splitandcall("start:" + mys + ":end");