2012-01-07 17:33:42 +00:00
|
|
|
/*\
|
|
|
|
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"],
|
2012-01-07 18:34:20 +00:00
|
|
|
dependentAll: true, // Tiddlers containing <<list>> macro are dependent on every tiddler
|
2012-01-07 17:33:42 +00:00
|
|
|
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!";
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
})();
|