Hi Josiah

> I can explain a Use-Case of some interest where it could be very helpful.

Bob is running under Node.js and so can just reach into the file system and 
retrieve arbitrary .tid files. The approach I mentioned is a technique for the 
browser.

Best wishes

Jeremy.


> 
> Best wishes
> Josiah
> 
> Jeremy wrote...
> 
> There is one technique that could be used to accomplish some of what is being 
> discussed in this thread: JSONP https://en.wikipedia.org/wiki/JSONP 
> <https://www.google.com/url?q=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FJSONP&sa=D&sntz=1&usg=AFQjCNEa8pLTYCmzDHAyZHVZYtus4omLVQ>
> 
> Basically, it would require that tiddlers be stored in .jsonp files like this:
> 
> $tw.wiki.addTiddlers([
>       {
>               "title": "HelloThere",
>               "text": "Some text"
>       },{
>               "title": "Getting Started",
>               "text": "Some more text"
>       }
> ]);
> 
> Then, to load tiddler(s) in a particular file, you’d need to use JS to create 
> a script tag that references that file and insert the script tag into the 
> DOM. The script tag would look like this:
> 
> <script src="./tiddlers/first-bundle.jsonp"></script>
> 
> In TW5, one might implement the loading via a startup module that handles a 
> "tm-load-jsonp” message.
> 
> It would be straightforward to make a new exporter template for the JSONP 
> format.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/ba1bf67c-fbb3-4f94-824b-9e5d5bb9bdb9%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/ba1bf67c-fbb3-4f94-824b-9e5d5bb9bdb9%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0BC01894-9DFC-47D1-8F94-E2E1C409826C%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to