Hello Jeremy,
thank you very much for your help! While I figured out from the wikiparser
rule for macrocalls that there is now a type macrocall I could not get the
parameter passing correct. But your code snippet helped. But now I'm stuck
with a problem of the RfcLink macro that gets called.
As it currently stands, this RfcLink macro developed on 5.0.7 returns an
markup string that contains TW5 widget markup. For instance, there is
<$link to="...">...</$link>" in the markup string returned by the macro. In
TW 5.0.13 this doesn't work as it seems to get directly fed into the
innerHTML property of an DOM element. In consequence I get an exception
raised. What do I need to return as the result of a macro and how do I
return the widget markup? Has this been changed around 5.0.9 also? I've
read the architecture analysis but could not find any information related
to what macros should return.
This is the skeleton of my macro definition tiddler.
exports.name = "RfcLink";
exports.params = [
{ name: "rfcnumber" },
{ name: "format" }
];
exports.run = function(rfcnumber, format) {
var result = '<$link to="' + linkto + '">' + linktext + '</$link>';
return result;
};
Again, any help greatly appreciated and desperately sought for... ;)
-- TheDiveO
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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 http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.