Ciao Jeremy

Looks very useful if it can be achieved.

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

Bed Carty's Bob is a good instance to start with. Bob supports direct easy 
access to user set "editions"; it supports, out-of-the-box inter-wiki 
one-button-press "fetch" (great for styling, adding plugins etc).

In other words, you can build very easily and quickly a custom TW end-user 
version in literally a few seconds.

*The one thing missing *that could really complete the "access components 
efficiently" is single-click access to specific JSON file imports. External 
JSON has the concrete advantage that you can save to one a "perfectly 
honed" assemblage of highly specified Tiddlers that can go even further 
than the other methods.

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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/ba1bf67c-fbb3-4f94-824b-9e5d5bb9bdb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to