Hey guys,
I finally dare digging into the whole TiddlyWiki magic underneath the fancy UI.
At first I tried to get a JavaScript Macro running but failed miserably.
This is my code:
/*\
title: $:/mirodin/macro/tester.js
type: application/javascript
module-type: macro
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
/*
An example js macro.
*/
exports.name = "tester";
exports.params = [];
/*
Run the macro
*/
exports.run = function() {
return "TESTER";
};
})();
I also set the type field to application/javascript and the module_type to macro but when I called it within an new tiddler (after page refresh) via <<tester>> there was no output.
I figure I miss anything super obvious but I do not have a clue what might that be. Any help/hint/tip would be very much appreciated.
Thanks
Tristan