On Sunday, 16 December 2018 18:18:50 UTC+1, Jeremy Ruston wrote:
>
> Hi Joe
>
> I'd like some feedback on some tiddlers I've been writing.
>
> If I publish the tidders on github (ie the individual tiddlers and NOT an 
> entire TW)
> is there a syntax that can be used that can yank in and view the tiddler 
> from any other
> TW?)
>
> I realise this breaks security - but would be very convenient - can the 
> remote tiddler be run in a 
> iframe? or some other trusted mode?
>
>
> We can do that from Node.js (running in the browser we can only retrieve 
> from HTTP endpoints that are CORS enabled).
>
> There’s a “fetch” command that retrieves tiddlers over HTTP that ought to 
> be able to do the job:
>
> tiddlywiki editions/empty/ --verbose --fetch file 
> https://raw.githubusercontent.com/Jermolene/TiddlyWiki5/master/editions/dev/tiddlers/HelloThere.tid
>  
> '[!is[system]]' '' --build index
>
> It’s intended for exactly this kind of use case.
>
> https://tiddlywiki.com/#FetchCommand
>
> In particular, a useful arrangement is to save the URLs of the files 
> you’re importing in the URL field of tiddlers tagged, say, “remote-server”, 
> and then you can use a filter to specify a bunch of URLs to read:
>
> tiddlywiki editions/empty/ --verbose --fetch files 
> '[tag[remote_server]get[url]]' '[!is[system]]' '' --build index
>
> However, it doesn’t work with GitHub at the moment because it returns all 
> files with the content type “text/plain” which confuses the import 
> mechanism. We could fix this easily enough by allowing an override content 
> type to be specified as an additional command parameter.
>


Interesting the github pages serves the tiddlers up with
Content-Type: application/octet-stream

:-)

/Joe
 

>
> Best wishes
>
> Jeremy.
>
>
>
> Cheers
>
> /Joe
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> Visit this group at https://groups.google.com/group/tiddlywikidev.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywikidev/13edcef6-3cff-495b-a18f-4858855821ab%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywikidev/13edcef6-3cff-495b-a18f-4858855821ab%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/d95c4f8d-a198-4123-85f4-657908c09eb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to