print("write " + Options.target+"/symbols/" +symbol.alias+'.' + Options.publishExt);
// dump out a
- File.write(Options.target+"/json/", symbol.alias+'.json' , this.jsonRender(symbol));
+
+ this.publishJSON(Options.target+"/json/", symbol.alias+'.json', symbol)
+
}
fileindexTemplate = filesIndex = files = null;
}
- publishJSON = function(data)
+ publishJSON = function(file, data)
{
// what we need to output to be usefull...
// a) props..
props : props,
events: events
};
- return JSON.stringify(ret, null, 2 );
+ File.write(file, JSON.stringify(ret, null, 2 ));
// b) methods