The getTiddlerText method of a TiddlyWiki object returns the source code of a tiddler. It takes two parameters:
If a tiddler is not defined by the author but a shadow tiddler exists, its source code is returned instead. If the tiddler doesn't exist, then the second parameter passed is returned.
Also see Tiddler Heading Transclusion
- the title of the tiddler
- the string to return if the tiddler does not exist (by default, the null value — not an empty string)
store.getTiddlerText('getTiddlerText');
// if it doesn't exist null will be returned
store.getTiddlerText('getTiddlerText', 'Nothing there');
// if it doesn't exist 'Nothing there' will be returned
If a tiddler is not defined by the author but a shadow tiddler exists, its source code is returned instead. If the tiddler doesn't exist, then the second parameter passed is returned.
Also see Tiddler Heading Transclusion