Skip to content

Workflow for JavaScript Macros/Wegets Developments inside TW5 #6392

Answered by btheado
msameen99 asked this question in Q&A
Discussion options

You must be logged in to vote

I wrote all the code for my TW widget tutorial using tiddlywiki. The innerwiki plugin makes it easy to test javascript changes without having to reload the outer wiki.

Compose the javascript tiddlers in the outer wiki. The changes there won't take affect until full reload. But you can insert those tiddlers into innerwiki instances in order to get them to reload.

For example, adapted from https://btheado.github.io/tw-widget-tutorial/#Hello%20World%20demo:

<!-- The innerwiki doesn't refresh on its own when tiddlers on the outside
     change, so use the list widget to force a dependency -->
<$list name=refresh filter=[[hello.js]get[text]]>
<$innerwiki width="600" height="400" style="width:1…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Jermolene
Comment options

@msameen99
Comment options

@btheado
Comment options

Answer selected by msameen99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants