better nanoui caching + fixes

Signed-off-by: Mloc <colmohici@gmail.com>
This commit is contained in:
Mloc
2015-05-14 22:35:50 +01:00
parent 1e6921f924
commit cfb51cf198
10 changed files with 61 additions and 89 deletions

View File

@@ -7,6 +7,11 @@ proc
var/static/json_reader/_jsonr = new()
return _jsonr.ReadObject(_jsonr.ScanJson(json))
list2json(list/L, var/cached_data = null)
list2json(list/L)
var/static/json_writer/_jsonw = new()
return _jsonw.WriteObject(L, cached_data)
return _jsonw.write(L)
list2json_usecache(list/L)
var/static/json_writer/_jsonw = new()
_jsonw.use_cache = 1
return _jsonw.write(L)