mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-12 19:20:27 +00:00
add the possibility to dynamically exclude tiddlers from being delivered out (e.g. temporarily reduce size by kind of 'hiding' stuff to the browser). one can also add the filter '-[subfilter{$:/config/Server/GlobalExclusionFilter}]' to the root-tiddler to get a synchronous behavior
This commit is contained in:
parent
ca4cdc81dd
commit
f470078c9d
@ -28,6 +28,7 @@ exports.handler = function(request,response,state) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
filter = filter + "-[subfilter{$:/config/Server/GlobalExclusionFilter}]";
|
||||||
var excludeFields = (state.queryParameters.exclude || "text").split(","),
|
var excludeFields = (state.queryParameters.exclude || "text").split(","),
|
||||||
titles = state.wiki.filterTiddlers(filter);
|
titles = state.wiki.filterTiddlers(filter);
|
||||||
response.writeHead(200, {"Content-Type": "application/json"});
|
response.writeHead(200, {"Content-Type": "application/json"});
|
||||||
|
Loading…
Reference in New Issue
Block a user