2012-01-07 17:33:42 +00:00
|
|
|
/*\
|
|
|
|
title: js/macros/echo.js
|
|
|
|
|
|
|
|
\*/
|
|
|
|
(function(){
|
|
|
|
|
|
|
|
/*jslint node: true */
|
|
|
|
"use strict";
|
|
|
|
|
2012-02-16 20:38:10 +00:00
|
|
|
var Renderer = require("../Renderer.js").Renderer;
|
2012-01-07 17:33:42 +00:00
|
|
|
|
|
|
|
exports.macro = {
|
|
|
|
name: "echo",
|
|
|
|
types: ["text/html","text/plain"],
|
|
|
|
params: {
|
2012-02-17 17:32:32 +00:00
|
|
|
text: {byPos: 0, type: "text"}
|
2012-01-07 17:33:42 +00:00
|
|
|
},
|
2012-02-16 20:38:10 +00:00
|
|
|
execute: function(macroNode,tiddler,store) {
|
|
|
|
return [Renderer.TextNode(macroNode.params.text)];
|
2012-01-07 17:33:42 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
})();
|