jsmart
jsmart copied to clipboard
Caching problem
http://code.google.com/p/jsmart/wiki/caching
the caching method is great, but only in browser.
I want to use jSmart in my asp project, using the code :
>>>
var name = xxxx;
var f = new F.File('/bin/data/template_c/' + name);
var text = null;
var tpl;
if (f.exist()) {
text = f.getText();
tpl = new jSmart();
tpl.tree = eval(text);
}else{
tpl = new jSmart(f.getText());
text = F.json.stringify(tpl.tree);
f.setText(text);
}
however, some var in tpl.tree are Array type, but they have Non-number
properties. So they can not be json stringified.
Can you fix it?
Original issue reported on code.google.com by [email protected]
on 4 Jun 2012 at 9:54