mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-14 22:04:51 +00:00
3560703078
Like <<list>>
27 lines
558 B
JavaScript
27 lines
558 B
JavaScript
/*\
|
|
title: js/macros/list.js
|
|
|
|
\*/
|
|
(function(){
|
|
|
|
/*jslint node: true */
|
|
"use strict";
|
|
|
|
var utils = require("../Utils.js");
|
|
|
|
exports.macro = {
|
|
name: "list",
|
|
types: ["text/html","text/plain"],
|
|
dependentAll: true, // Tiddlers containing <<list>> macro are dependent on every tiddler
|
|
params: {
|
|
type: {byName: "default", type: "text", optional: false},
|
|
template: {byName: true, type: "tiddler", optional: true},
|
|
emptyMessage: {byName: true, type: "text", optional: true}
|
|
},
|
|
code: function(type,tiddler,store,params) {
|
|
return "Listing!";
|
|
}
|
|
};
|
|
|
|
})();
|