> My goal: Make a macro that takes the text from the tiddler siteTitle
> and displays it when you write <<siteTitle>> anywhere on the site --
> same with siteSubtitle, respectively.
As an exercise in macro writing, I suppose those would be as good as
any.
However, the functionality you describe is already provided by TWCore
macro:
<<tiddler TiddlerName>
will 'transclude' (aka, embed) content from the named tiddler into the
current one.
var txt=store.getTiddlerText("NameOfTiddler","default value");
If the named tiddler doesn't exist, it returns the indicated default
value (or NULL if no default is provided)
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
Help support TiddlyTools:
http://www.TiddlyTools.com/#Donate (paypal)
TiddlyWiki Professional Consulting:
http://www.TiddlyTools.com/#ELSDesignStudios
http://www.TiddlyTools.com/#Contact