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.name ="aargh";
exports.params = [];
exports.run = function() {
  return "AARGH!!!";
};

})();

And yet when I call <<aargh>> I get nothing.

-- 
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/d0b2ef48-5254-4be5-85fa-4d1f35bcb634%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to