1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-01 05:52:54 +00:00
TiddlyWiki5/js/macros/echo.js
Jeremy Ruston bf6f5e0254 Refactored macro interface
Now 'this' points to the Renderer.MacroNode
2012-02-21 21:57:30 +00:00

24 lines
339 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"}
},
execute: function() {
return [Renderer.TextNode(this.params.text)];
}
};
})();