1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-08 10:59:57 +00:00
TiddlyWiki5/js/macros/echo.js
2012-02-16 20:38:10 +00:00

24 lines
384 B
JavaScript

/*\
title: js/macros/echo.js
\*/
(function(){
/*jslint node: true */
"use strict";
var Renderer = require("../Renderer.js").Renderer;
exports.macro = {
name: "echo",
types: ["text/html","text/plain"],
params: {
text: {byPos: 0, type: "text", optional: false}
},
execute: function(macroNode,tiddler,store) {
return [Renderer.TextNode(macroNode.params.text)];
}
};
})();