I feel like I'm fairly intelligent, but JavaScript Macros are making me feel completely stupid and no reading of all the tiddlers on
tiddlywiki.com seem to be helping me.
I'm good with java script itself. I'm good is the need to make the type "application/javascript". I understand the 3 fields of "exports" (or at least think I do). But it doesn't seem to matter how I put this in I can't seem to get any of my tiddlers to actually call my macros. Is there a specific tiddler name/pattern that the title has to be? Is there a specific tag that the tiddler needs? Am I not supposed to type it in as a tiddler, do I *need* to import it?
I've been struggling with this for a while, doing searches that seem to no avail, but I'm not getting anywhere. Please help.
Test macro:
created: 20160615195939654
modified: 20160615201526650
tags: $:/tags/Macro
title: $:/macros/my/aargh.js
type: application/javascript
/*\
module-type: macro
\*/
(function(){
"use strict";
exports.params = [];
exports.run = function() {
return "AARGH!!!";
};
})();
And yet when I call <<aargh>> I get nothing.