The getTemplateForTiddler method of the Story class returns HTML source code ready to be used as a template that is stored inside a tiddler. This method takes three parameters:

  • the title of the tiddler that is about to be displayed
  • the title of the tiddler containing the template source code. Note that the constants DEFAULT_VIEW_TEMPLATE and DEFAULT_EDIT_TEMPLATE do not work here.
  • a reference to the Tiddler about to be displayed

Only the second parameter is actually used by the TiddlyWiki code, but the other information is passed for the benefit of plugin developers who override this method.
bag
tiddlywikidev_public
created
Tue, 31 May 2011 14:12:36 GMT
creator
jon
modified
Tue, 31 May 2011 14:12:36 GMT
modifier
jon
wikiformat
mediawiki