mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 01:20:30 +00:00
33 lines
462 B
JavaScript
33 lines
462 B
JavaScript
/*\
|
|
title: $:/core/modules/macros/jsontiddlers.js
|
|
type: application/javascript
|
|
module-type: macro
|
|
|
|
Macro to output tiddlers matching a filter to JSON
|
|
|
|
\*/
|
|
(function(){
|
|
|
|
/*jslint node: true, browser: true */
|
|
/*global $tw: false */
|
|
"use strict";
|
|
|
|
/*
|
|
Information about this macro
|
|
*/
|
|
|
|
exports.name = "jsontiddlers";
|
|
|
|
exports.params = [
|
|
{name: "filter"}
|
|
];
|
|
|
|
/*
|
|
Run the macro
|
|
*/
|
|
exports.run = function(filter) {
|
|
return this.wiki.getTiddlersAsJson(filter);
|
|
};
|
|
|
|
})();
|