/*\ title: $:/core/modules/macros/csvtiddlers.js type: application/javascript module-type: macro Macro to output tiddlers matching a filter to CSV \*/ (function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; /* Information about this macro */ exports.name = "csvtiddlers"; exports.params = [ {name: "filter"}, {name: "format"}, ]; /* Run the macro */ exports.run = function(filter,format) { var self = this, tiddlers = this.wiki.filterTiddlers(filter), tiddler, fields = [], t,f; // Collect all the fields for(t=0;t