I get js script macro tiddler.
/*\
title: JsTiddler
type: application/javascript
module-type: macro
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
exports.name = "jstiddler";
exports.params = [
{name: "AppleDefault"}
];
/*
Run the macro
*/
exports.run = function(name) {
return "Hello " + name;
};
})();
And another tiddler to run it
<$importvariables filter="[[JsTiddler]]">
<$macrocall $name="jstiddler" name="Banana" />
</$importvariables>
But I only get Hello no âbananaâ why is this?
Another question
I checked the core module js macro, I know that the now.js
has a parameter.
So I search it in the advanced search and get this:
I canât step forward until now, I canât get what I want in the core tiddler. So what should I do next ?