The refreshTiddler method of the Story class re-renders a tiddler's source code on the page through the given template. It takes three parameters:
This method returns an DOM element reference to the tiddler on the page.
Note this is a destructive event which will force the complete re-rendering of a tiddler in the story re-executing any macros within a template will be re-executed so much be used wisely.
- the title of the tiddler to display
- the template to use for display. You should use either the constant DEFAULT_VIEW_TEMPLATE or DEFAULT_EDIT_TEMPLATE in most cases.
- a boolean representing whether to force re-rendering even if the tiddler and template has not changed, or if there are unsaved changes to the tiddler.
This method returns an DOM element reference to the tiddler on the page.
Note this is a destructive event which will force the complete re-rendering of a tiddler in the story re-executing any macros within a template will be re-executed so much be used wisely.