1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-12 11:10: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:
mrichter 2020-11-16 17:22:54 +01:00
parent ca4cdc81dd
commit f470078c9d

View File

@ -28,6 +28,7 @@ exports.handler = function(request,response,state) {
return;
}
}
filter = filter + "-[subfilter{$:/config/Server/GlobalExclusionFilter}]";
var excludeFields = (state.queryParameters.exclude || "text").split(","),
titles = state.wiki.filterTiddlers(filter);
response.writeHead(200, {"Content-Type": "application/json"});