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
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/bdaa5c16-6c74-4ca9-b89a-5252f2e7e999%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.